pub struct TextMention {
pub text: RichText,
}Expand description
Fields§
§text: RichTextTrait Implementations§
Source§impl Clone for TextMention
impl Clone for TextMention
Source§fn clone(&self) -> TextMention
fn clone(&self) -> TextMention
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextMention
impl Debug for TextMention
Source§impl Deserializable for TextMention
impl Deserializable for TextMention
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<TextMention> for RichText
impl From<TextMention> for RichText
Source§fn from(x: TextMention) -> Self
fn from(x: TextMention) -> Self
Converts to this type from the input type.
Source§impl Identifiable for TextMention
impl Identifiable for TextMention
Source§const CONSTRUCTOR_ID: u32 = 0xcd24cf44
const CONSTRUCTOR_ID: u32 = 0xcd24cf44
The constructor ID as specified in the TL schema.
Source§impl PartialEq for TextMention
impl PartialEq for TextMention
Source§fn eq(&self, other: &TextMention) -> bool
fn eq(&self, other: &TextMention) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serializable for TextMention
impl Serializable for TextMention
impl StructuralPartialEq for TextMention
Auto Trait Implementations§
impl Freeze for TextMention
impl RefUnwindSafe for TextMention
impl Send for TextMention
impl Sync for TextMention
impl Unpin for TextMention
impl UnsafeUnpin for TextMention
impl UnwindSafe for TextMention
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