pub struct DraftMessage {
pub reply_to: Option<InputMessageReplyTo>,
pub date: i32,
pub input_message_text: InputMessageContent,
}
Expand description
Contains information about a message draft
Fields§
§reply_to: Option<InputMessageReplyTo>
Information about the message to be replied; must be of the type inputMessageReplyToMessage; may be null if none
date: i32
Point in time (Unix timestamp) when the draft was created
input_message_text: InputMessageContent
Content of the message draft; must be of the type inputMessageText, inputMessageVideoNote, or inputMessageVoiceNote
Trait Implementations§
Source§impl Clone for DraftMessage
impl Clone for DraftMessage
Source§fn clone(&self) -> DraftMessage
fn clone(&self) -> DraftMessage
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 DraftMessage
impl Debug for DraftMessage
Source§impl<'de> Deserialize<'de> for DraftMessage
impl<'de> Deserialize<'de> for DraftMessage
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 PartialEq for DraftMessage
impl PartialEq for DraftMessage
Source§impl Serialize for DraftMessage
impl Serialize for DraftMessage
impl StructuralPartialEq for DraftMessage
Auto Trait Implementations§
impl Freeze for DraftMessage
impl RefUnwindSafe for DraftMessage
impl Send for DraftMessage
impl Sync for DraftMessage
impl Unpin for DraftMessage
impl UnwindSafe for DraftMessage
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