#[non_exhaustive]pub struct UserFilter {
pub and: Option<Vec<UserFilter>>,
pub or: Option<Vec<UserFilter>>,
pub id: Option<IdComparator>,
pub name: Option<StringComparator>,
pub display_name: Option<StringComparator>,
pub email: Option<StringComparator>,
pub active: Option<BooleanComparator>,
}Expand description
Filter for users (UserFilter input).
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.and: Option<Vec<UserFilter>>All sub-filters must match.
or: Option<Vec<UserFilter>>At least one sub-filter must match.
id: Option<IdComparator>Filter by user ID.
name: Option<StringComparator>Filter by full name.
display_name: Option<StringComparator>Filter by display name.
email: Option<StringComparator>Filter by email address.
active: Option<BooleanComparator>Filter by active status.
Implementations§
Source§impl UserFilter
impl UserFilter
Sourcepub fn builder() -> UserFilterBuilder
pub fn builder() -> UserFilterBuilder
Create an instance of UserFilter using the builder syntax
Trait Implementations§
Source§impl Clone for UserFilter
impl Clone for UserFilter
Source§fn clone(&self) -> UserFilter
fn clone(&self) -> UserFilter
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 UserFilter
impl Debug for UserFilter
Source§impl Default for UserFilter
impl Default for UserFilter
Source§fn default() -> UserFilter
fn default() -> UserFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UserFilter
impl RefUnwindSafe for UserFilter
impl Send for UserFilter
impl Sync for UserFilter
impl Unpin for UserFilter
impl UnsafeUnpin for UserFilter
impl UnwindSafe for UserFilter
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