pub struct TextMentionName {
pub text: RichText,
pub user_id: i64,
}Expand description
Fields§
§text: RichText§user_id: i64Trait Implementations§
Source§impl Clone for TextMentionName
impl Clone for TextMentionName
Source§fn clone(&self) -> TextMentionName
fn clone(&self) -> TextMentionName
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 TextMentionName
impl Debug for TextMentionName
Source§impl Deserializable for TextMentionName
impl Deserializable for TextMentionName
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<TextMentionName> for RichText
impl From<TextMentionName> for RichText
Source§fn from(x: TextMentionName) -> Self
fn from(x: TextMentionName) -> Self
Converts to this type from the input type.
Source§impl Identifiable for TextMentionName
impl Identifiable for TextMentionName
Source§const CONSTRUCTOR_ID: u32 = 0x01a9fbfc
const CONSTRUCTOR_ID: u32 = 0x01a9fbfc
The constructor ID as specified in the TL schema.
Source§impl PartialEq for TextMentionName
impl PartialEq for TextMentionName
Source§fn eq(&self, other: &TextMentionName) -> bool
fn eq(&self, other: &TextMentionName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serializable for TextMentionName
impl Serializable for TextMentionName
impl StructuralPartialEq for TextMentionName
Auto Trait Implementations§
impl Freeze for TextMentionName
impl RefUnwindSafe for TextMentionName
impl Send for TextMentionName
impl Sync for TextMentionName
impl Unpin for TextMentionName
impl UnsafeUnpin for TextMentionName
impl UnwindSafe for TextMentionName
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