pub struct UpdateChatDraftMessage {
pub chat_id: i64,
pub draft_message: Option<DraftMessage>,
pub order: i64,
}
Expand description
A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update shouldn’t be applied
Fields§
§chat_id: i64
Chat identifier
draft_message: Option<DraftMessage>
The new draft message; may be null
order: i64
New value of the chat order
Trait Implementations§
Source§impl Clone for UpdateChatDraftMessage
impl Clone for UpdateChatDraftMessage
Source§fn clone(&self) -> UpdateChatDraftMessage
fn clone(&self) -> UpdateChatDraftMessage
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 UpdateChatDraftMessage
impl Debug for UpdateChatDraftMessage
Source§impl<'de> Deserialize<'de> for UpdateChatDraftMessage
impl<'de> Deserialize<'de> for UpdateChatDraftMessage
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
Auto Trait Implementations§
impl Freeze for UpdateChatDraftMessage
impl RefUnwindSafe for UpdateChatDraftMessage
impl Send for UpdateChatDraftMessage
impl Sync for UpdateChatDraftMessage
impl Unpin for UpdateChatDraftMessage
impl UnwindSafe for UpdateChatDraftMessage
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