pub struct Mention {
pub href: Option<Iri>,
pub rels: Vec<String>,
pub media_type: Option<String>,
pub digest_multibase: Option<String>,
pub name: Text,
pub language: Option<String>,
pub height: Option<u64>,
pub width: Option<u64>,
pub previews: Vec<LinkOrObject>,
}Expand description
A specialized {@link Link} that represents an @mention.
The type https://www.w3.org/ns/activitystreams#Mention.
Fields§
§href: Option<Iri>See Link::href.
rels: Vec<String>See Link::rels.
media_type: Option<String>See Link::media_type.
digest_multibase: Option<String>§name: TextSee Link::name.
language: Option<String>See Link::language.
height: Option<u64>See Link::height.
width: Option<u64>See Link::width.
previews: Vec<LinkOrObject>See Link::previews.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mention
impl<'de> Deserialize<'de> for Mention
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Mention
Auto Trait Implementations§
impl Freeze for Mention
impl RefUnwindSafe for Mention
impl Send for Mention
impl Sync for Mention
impl Unpin for Mention
impl UnsafeUnpin for Mention
impl UnwindSafe for Mention
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more