pub struct MessageService {Show 16 fields
pub out: bool,
pub mentioned: bool,
pub media_unread: bool,
pub reactions_are_possible: bool,
pub silent: bool,
pub post: bool,
pub legacy: bool,
pub id: i32,
pub from_id: Option<Peer>,
pub peer_id: Peer,
pub saved_peer_id: Option<Peer>,
pub reply_to: Option<MessageReplyHeader>,
pub date: i32,
pub action: MessageAction,
pub reactions: Option<MessageReactions>,
pub ttl_period: Option<i32>,
}Expand description
Generated from:
messageService#7a800e0a flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true reactions_are_possible:flags.9?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer saved_peer_id:flags.28?Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction reactions:flags.20?MessageReactions ttl_period:flags.25?int = MessageFields§
§out: bool§mentioned: bool§media_unread: bool§reactions_are_possible: bool§silent: bool§post: bool§legacy: bool§id: i32§from_id: Option<Peer>§peer_id: Peer§saved_peer_id: Option<Peer>§reply_to: Option<MessageReplyHeader>§date: i32§action: MessageAction§reactions: Option<MessageReactions>§ttl_period: Option<i32>Trait Implementations§
Source§impl Clone for MessageService
impl Clone for MessageService
Source§fn clone(&self) -> MessageService
fn clone(&self) -> MessageService
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 MessageService
impl Debug for MessageService
Source§impl Deserializable for MessageService
impl Deserializable for MessageService
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<MessageService> for Message
impl From<MessageService> for Message
Source§fn from(x: MessageService) -> Self
fn from(x: MessageService) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageService
impl Identifiable for MessageService
Source§const CONSTRUCTOR_ID: u32 = 0x7a800e0a
const CONSTRUCTOR_ID: u32 = 0x7a800e0a
The constructor ID as specified in the TL schema.
Source§impl PartialEq for MessageService
impl PartialEq for MessageService
Source§impl Serializable for MessageService
impl Serializable for MessageService
Source§impl TryFrom<Message> for MessageService
impl TryFrom<Message> for MessageService
impl StructuralPartialEq for MessageService
Auto Trait Implementations§
impl Freeze for MessageService
impl RefUnwindSafe for MessageService
impl Send for MessageService
impl Sync for MessageService
impl Unpin for MessageService
impl UnsafeUnpin for MessageService
impl UnwindSafe for MessageService
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