#[non_exhaustive]pub enum ChatInfo {
Direct {
contact: Contact,
undocumented: JsonObject,
},
Group {
group_info: GroupInfo,
group_chat_scope: Option<GroupChatScopeInfo>,
undocumented: JsonObject,
},
Local {
note_folder: NoteFolder,
undocumented: JsonObject,
},
ContactRequest {
contact_request: UserContactRequest,
undocumented: JsonObject,
},
ContactConnection {
contact_connection: PendingContactConnection,
undocumented: JsonObject,
},
Undocumented(JsonObject),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl ChatInfo
impl ChatInfo
pub fn direct(contact: Contact) -> Self
pub fn group( group_info: GroupInfo, group_chat_scope: Option<GroupChatScopeInfo>, ) -> Self
pub fn local(note_folder: NoteFolder) -> Self
pub fn contact_request(contact_request: UserContactRequest) -> Self
pub fn contact_connection(contact_connection: PendingContactConnection) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatInfo
impl<'de> Deserialize<'de> for ChatInfo
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
impl StructuralPartialEq for ChatInfo
Auto Trait Implementations§
impl Freeze for ChatInfo
impl RefUnwindSafe for ChatInfo
impl Send for ChatInfo
impl Sync for ChatInfo
impl Unpin for ChatInfo
impl UnsafeUnpin for ChatInfo
impl UnwindSafe for ChatInfo
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