pub struct SavedMessagesTopic {
pub id: i64,
pub type: SavedMessagesTopicType,
pub is_pinned: bool,
pub order: i64,
pub last_message: Option<Message>,
pub draft_message: Option<DraftMessage>,
}Expand description
Contains information about a Saved Messages topic
Fields§
§id: i64Unique topic identifier
type: SavedMessagesTopicTypeType of the topic
is_pinned: boolTrue, if the topic is pinned
order: i64A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order
last_message: Option<Message>Last message in the topic; may be null if none or unknown
draft_message: Option<DraftMessage>A draft of a message in the topic; may be null if none
Trait Implementations§
Source§impl Clone for SavedMessagesTopic
impl Clone for SavedMessagesTopic
Source§fn clone(&self) -> SavedMessagesTopic
fn clone(&self) -> SavedMessagesTopic
Returns a copy 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 SavedMessagesTopic
impl Debug for SavedMessagesTopic
Source§impl<'de> Deserialize<'de> for SavedMessagesTopic
impl<'de> Deserialize<'de> for SavedMessagesTopic
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 SavedMessagesTopic
impl PartialEq for SavedMessagesTopic
Source§impl Serialize for SavedMessagesTopic
impl Serialize for SavedMessagesTopic
impl StructuralPartialEq for SavedMessagesTopic
Auto Trait Implementations§
impl Freeze for SavedMessagesTopic
impl RefUnwindSafe for SavedMessagesTopic
impl Send for SavedMessagesTopic
impl Sync for SavedMessagesTopic
impl Unpin for SavedMessagesTopic
impl UnwindSafe for SavedMessagesTopic
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