pub struct UserLookupQuery {
pub id: Option<UserId>,
pub name: Option<String>,
}
Expand description
Query to lookup a user by unique data
no filters will return that the user does not exist.
multiple filters will act as a logical OR
of them (multiple choices will return an arbitrary user).
Fields§
§id: Option<UserId>
The user ID we’re filtering by.
name: Option<String>
The name we’re filtering by.
Trait Implementations§
Source§impl Clone for UserLookupQuery
impl Clone for UserLookupQuery
Source§fn clone(&self) -> UserLookupQuery
fn clone(&self) -> UserLookupQuery
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 UserLookupQuery
impl Debug for UserLookupQuery
Source§impl Default for UserLookupQuery
impl Default for UserLookupQuery
Source§fn default() -> UserLookupQuery
fn default() -> UserLookupQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserLookupQuery
impl<'de> Deserialize<'de> for UserLookupQuery
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
Auto Trait Implementations§
impl Freeze for UserLookupQuery
impl RefUnwindSafe for UserLookupQuery
impl Send for UserLookupQuery
impl Sync for UserLookupQuery
impl Unpin for UserLookupQuery
impl UnwindSafe for UserLookupQuery
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