pub struct MessageCommon {
pub from: Option<User>,
pub sender_chat: Option<Chat>,
pub reply_to_message: Option<Box<Message>>,
pub media: Media,
}Fields§
§from: Option<User>§sender_chat: Option<Chat>§reply_to_message: Option<Box<Message>>§media: MediaTrait Implementations§
Source§impl Clone for MessageCommon
impl Clone for MessageCommon
Source§fn clone(&self) -> MessageCommon
fn clone(&self) -> MessageCommon
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 MessageCommon
impl Debug for MessageCommon
Source§impl<'de> Deserialize<'de> for MessageCommon
impl<'de> Deserialize<'de> for MessageCommon
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<MessageCommon> for MessageKind
impl From<MessageCommon> for MessageKind
Source§fn from(value: MessageCommon) -> Self
fn from(value: MessageCommon) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MessageCommon
impl PartialEq for MessageCommon
Source§impl Serialize for MessageCommon
impl Serialize for MessageCommon
impl StructuralPartialEq for MessageCommon
Auto Trait Implementations§
impl Freeze for MessageCommon
impl RefUnwindSafe for MessageCommon
impl Send for MessageCommon
impl Sync for MessageCommon
impl Unpin for MessageCommon
impl UnwindSafe for MessageCommon
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