pub struct RichMessage {
pub rtl: bool,
pub part: bool,
pub blocks: Vec<PageBlock>,
pub photos: Vec<Photo>,
pub documents: Vec<Document>,
}Expand description
Generated from:
richMessage#baf39d8b flags:# rtl:flags.0?true part:flags.1?true blocks:Vector<PageBlock> photos:Vector<Photo> documents:Vector<Document> = RichMessageFields§
§rtl: bool§part: bool§blocks: Vec<PageBlock>§photos: Vec<Photo>§documents: Vec<Document>Trait Implementations§
Source§impl Clone for RichMessage
impl Clone for RichMessage
Source§fn clone(&self) -> RichMessage
fn clone(&self) -> RichMessage
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 RichMessage
impl Debug for RichMessage
Source§impl Deserializable for RichMessage
impl Deserializable for RichMessage
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<RichMessage> for RichMessage
impl From<RichMessage> for RichMessage
Source§fn from(x: RichMessage) -> Self
fn from(x: RichMessage) -> Self
Converts to this type from the input type.
Source§impl Identifiable for RichMessage
impl Identifiable for RichMessage
Source§const CONSTRUCTOR_ID: u32 = 0xbaf39d8b
const CONSTRUCTOR_ID: u32 = 0xbaf39d8b
The constructor ID as specified in the TL schema.
Source§impl PartialEq for RichMessage
impl PartialEq for RichMessage
Source§fn eq(&self, other: &RichMessage) -> bool
fn eq(&self, other: &RichMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serializable for RichMessage
impl Serializable for RichMessage
impl StructuralPartialEq for RichMessage
Source§impl TryFrom<RichMessage> for RichMessage
impl TryFrom<RichMessage> for RichMessage
Source§type Error = RichMessage
type Error = RichMessage
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for RichMessage
impl RefUnwindSafe for RichMessage
impl Send for RichMessage
impl Sync for RichMessage
impl Unpin for RichMessage
impl UnsafeUnpin for RichMessage
impl UnwindSafe for RichMessage
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