pub struct ChannelMessages {
pub inexact: bool,
pub pts: i32,
pub count: i32,
pub offset_id_offset: Option<i32>,
pub messages: Vec<Message>,
pub topics: Vec<ForumTopic>,
pub chats: Vec<Chat>,
pub users: Vec<User>,
}Expand description
Generated from:
messages.channelMessages#c776ba4e flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> topics:Vector<ForumTopic> chats:Vector<Chat> users:Vector<User> = messages.MessagesFields§
§inexact: bool§pts: i32§count: i32§offset_id_offset: Option<i32>§messages: Vec<Message>§topics: Vec<ForumTopic>§chats: Vec<Chat>§users: Vec<User>Trait Implementations§
Source§impl Clone for ChannelMessages
impl Clone for ChannelMessages
Source§fn clone(&self) -> ChannelMessages
fn clone(&self) -> ChannelMessages
Returns a duplicate of the value. Read more
1.0.0 · 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 ChannelMessages
impl Debug for ChannelMessages
Source§impl Deserializable for ChannelMessages
impl Deserializable for ChannelMessages
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<ChannelMessages> for Messages
impl From<ChannelMessages> for Messages
Source§fn from(x: ChannelMessages) -> Self
fn from(x: ChannelMessages) -> Self
Converts to this type from the input type.
Source§impl Identifiable for ChannelMessages
impl Identifiable for ChannelMessages
Source§const CONSTRUCTOR_ID: u32 = 0xc776ba4e
const CONSTRUCTOR_ID: u32 = 0xc776ba4e
The constructor ID as specified in the TL schema.
Source§impl PartialEq for ChannelMessages
impl PartialEq for ChannelMessages
Source§impl Serializable for ChannelMessages
impl Serializable for ChannelMessages
Source§impl TryFrom<Messages> for ChannelMessages
impl TryFrom<Messages> for ChannelMessages
impl StructuralPartialEq for ChannelMessages
Auto Trait Implementations§
impl Freeze for ChannelMessages
impl RefUnwindSafe for ChannelMessages
impl Send for ChannelMessages
impl Sync for ChannelMessages
impl Unpin for ChannelMessages
impl UnsafeUnpin for ChannelMessages
impl UnwindSafe for ChannelMessages
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