pub struct UserRegistrationTokenFilter { /* private fields */ }
Expand description
A filter to apply when listing UserRegistrationToken
s
Implementations§
Source§impl UserRegistrationTokenFilter
impl UserRegistrationTokenFilter
Sourcepub fn with_been_used(self, has_been_used: bool) -> Self
pub fn with_been_used(self, has_been_used: bool) -> Self
Filter by whether the token has been used at least once
Sourcepub fn with_revoked(self, is_revoked: bool) -> Self
pub fn with_revoked(self, is_revoked: bool) -> Self
Filter by revoked status
Sourcepub fn with_expired(self, is_expired: bool) -> Self
pub fn with_expired(self, is_expired: bool) -> Self
Filter by expired status
Sourcepub fn with_valid(self, is_valid: bool) -> Self
pub fn with_valid(self, is_valid: bool) -> Self
Filter by valid status (meaning: not expired, not revoked, and still with uses left)
Sourcepub fn has_been_used(&self) -> Option<bool>
pub fn has_been_used(&self) -> Option<bool>
Get the used status filter
Returns None
if no used status filter was set
Sourcepub fn is_revoked(&self) -> Option<bool>
pub fn is_revoked(&self) -> Option<bool>
Get the revoked status filter
Returns None
if no revoked status filter was set
Sourcepub fn is_expired(&self) -> Option<bool>
pub fn is_expired(&self) -> Option<bool>
Get the expired status filter
Returns None
if no expired status filter was set
Trait Implementations§
Source§impl Clone for UserRegistrationTokenFilter
impl Clone for UserRegistrationTokenFilter
Source§fn clone(&self) -> UserRegistrationTokenFilter
fn clone(&self) -> UserRegistrationTokenFilter
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 UserRegistrationTokenFilter
impl Debug for UserRegistrationTokenFilter
impl Copy for UserRegistrationTokenFilter
Auto Trait Implementations§
impl Freeze for UserRegistrationTokenFilter
impl RefUnwindSafe for UserRegistrationTokenFilter
impl Send for UserRegistrationTokenFilter
impl Sync for UserRegistrationTokenFilter
impl Unpin for UserRegistrationTokenFilter
impl UnwindSafe for UserRegistrationTokenFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more