pub struct UpdateChatPosition {
pub chat_id: i64,
pub position: ChatPosition,
}
Expand description
The position of a chat in a chat list has changed. An updateChatLastMessage or updateChatDraftMessage update might be sent instead of the update
Fields§
§chat_id: i64
Chat identifier
position: ChatPosition
New chat position. If new order is 0, then the chat needs to be removed from the list
Trait Implementations§
Source§impl Clone for UpdateChatPosition
impl Clone for UpdateChatPosition
Source§fn clone(&self) -> UpdateChatPosition
fn clone(&self) -> UpdateChatPosition
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 UpdateChatPosition
impl Debug for UpdateChatPosition
Source§impl<'de> Deserialize<'de> for UpdateChatPosition
impl<'de> Deserialize<'de> for UpdateChatPosition
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 UpdateChatPosition
impl PartialEq for UpdateChatPosition
Source§impl Serialize for UpdateChatPosition
impl Serialize for UpdateChatPosition
impl StructuralPartialEq for UpdateChatPosition
Auto Trait Implementations§
impl Freeze for UpdateChatPosition
impl RefUnwindSafe for UpdateChatPosition
impl Send for UpdateChatPosition
impl Sync for UpdateChatPosition
impl Unpin for UpdateChatPosition
impl UnwindSafe for UpdateChatPosition
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