#[non_exhaustive]pub enum ChatListQuery {
Filters {
favorite: bool,
unread: bool,
undocumented: JsonObject,
},
Search {
search: String,
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 ChatListQuery
impl ChatListQuery
pub fn make_filters(favorite: bool, unread: bool) -> Self
pub fn make_search(search: String) -> Self
Trait Implementations§
Source§impl Clone for ChatListQuery
impl Clone for ChatListQuery
Source§fn clone(&self) -> ChatListQuery
fn clone(&self) -> ChatListQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChatListQuery
impl Debug for ChatListQuery
Source§impl<'de> Deserialize<'de> for ChatListQuery
impl<'de> Deserialize<'de> for ChatListQuery
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 ChatListQuery
impl PartialEq for ChatListQuery
Source§fn eq(&self, other: &ChatListQuery) -> bool
fn eq(&self, other: &ChatListQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChatListQuery
impl Serialize for ChatListQuery
impl StructuralPartialEq for ChatListQuery
Auto Trait Implementations§
impl Freeze for ChatListQuery
impl RefUnwindSafe for ChatListQuery
impl Send for ChatListQuery
impl Sync for ChatListQuery
impl Unpin for ChatListQuery
impl UnsafeUnpin for ChatListQuery
impl UnwindSafe for ChatListQuery
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