pub struct Mention<'a> {
pub href: &'a Iri,
pub name: Option<&'a str>,
}Expand description
Someone a post mentions.
Fields§
§href: &'a IriThe actor.
name: Option<&'a str>How the post names them, such as @alice@example.com, if it does.
Trait Implementations§
impl<'a> Copy for Mention<'a>
impl<'a> Eq for Mention<'a>
impl<'a> StructuralPartialEq for Mention<'a>
Auto Trait Implementations§
impl<'a> Freeze for Mention<'a>
impl<'a> RefUnwindSafe for Mention<'a>
impl<'a> Send for Mention<'a>
impl<'a> Sync for Mention<'a>
impl<'a> Unpin for Mention<'a>
impl<'a> UnsafeUnpin for Mention<'a>
impl<'a> UnwindSafe for Mention<'a>
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