#[non_exhaustive]pub struct ChatContactQueryInput {
pub filter_blocked: Option<bool>,
pub filter_presence: Option<ContactPresenceFilter>,
pub position: Option<u64>,
pub limit: Option<u64>,
pub sort_property: Option<ContactSortProperty>,
pub sort_ascending: Option<bool>,
}Expand description
Input parameters for ChatContact/query.
All fields are optional; an empty filter shows all contacts.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.filter_blocked: Option<bool>Filter to blocked (true) or non-blocked (false) contacts.
filter_presence: Option<ContactPresenceFilter>Filter to contacts with this exact presence state.
position: Option<u64>Zero-based starting offset within the query result.
limit: Option<u64>Maximum number of ids to return.
sort_property: Option<ContactSortProperty>Sort property.
sort_ascending: Option<bool>When Some(false) or None, sort descending. Some(true) sorts ascending.
Trait Implementations§
Source§impl Clone for ChatContactQueryInput
impl Clone for ChatContactQueryInput
Source§fn clone(&self) -> ChatContactQueryInput
fn clone(&self) -> ChatContactQueryInput
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 ChatContactQueryInput
impl Debug for ChatContactQueryInput
Source§impl Default for ChatContactQueryInput
impl Default for ChatContactQueryInput
Source§fn default() -> ChatContactQueryInput
fn default() -> ChatContactQueryInput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChatContactQueryInput
impl RefUnwindSafe for ChatContactQueryInput
impl Send for ChatContactQueryInput
impl Sync for ChatContactQueryInput
impl Unpin for ChatContactQueryInput
impl UnsafeUnpin for ChatContactQueryInput
impl UnwindSafe for ChatContactQueryInput
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