pub struct ProjectAccessTokensBuilder<'a> { /* private fields */ }
Expand description
Builder for ProjectAccessTokens
.
Implementations§
Source§impl<'a> ProjectAccessTokensBuilder<'a>
impl<'a> ProjectAccessTokensBuilder<'a>
Sourcepub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
The project for which to list tokens.
Sourcepub fn created_after(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn created_after(&mut self, value: DateTime<Utc>) -> &mut Self
Filter tokens created on or after this date.
Sourcepub fn created_before(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn created_before(&mut self, value: DateTime<Utc>) -> &mut Self
Filter tokens created on or before this date.
Sourcepub fn last_used_after(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn last_used_after(&mut self, value: DateTime<Utc>) -> &mut Self
Filter tokens last used on or after this date.
Sourcepub fn last_used_before(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn last_used_before(&mut self, value: DateTime<Utc>) -> &mut Self
Filter tokens last used on or before this date.
Sourcepub fn search<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn search<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Search query for token name or description.
Sourcepub fn state(&mut self, value: ProjectAccessTokenState) -> &mut Self
pub fn state(&mut self, value: ProjectAccessTokenState) -> &mut Self
Filter by token state.
Sourcepub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Filter by description of the token.
Sourcepub fn order_by(&mut self, value: ProjectAccessTokenOrderBy) -> &mut Self
pub fn order_by(&mut self, value: ProjectAccessTokenOrderBy) -> &mut Self
Order results by a specific field.
Sourcepub fn build(
&self,
) -> Result<ProjectAccessTokens<'a>, ProjectAccessTokensBuilderError>
pub fn build( &self, ) -> Result<ProjectAccessTokens<'a>, ProjectAccessTokensBuilderError>
Trait Implementations§
Source§impl<'a> Clone for ProjectAccessTokensBuilder<'a>
impl<'a> Clone for ProjectAccessTokensBuilder<'a>
Source§fn clone(&self) -> ProjectAccessTokensBuilder<'a>
fn clone(&self) -> ProjectAccessTokensBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for ProjectAccessTokensBuilder<'a>
impl<'a> RefUnwindSafe for ProjectAccessTokensBuilder<'a>
impl<'a> Send for ProjectAccessTokensBuilder<'a>
impl<'a> Sync for ProjectAccessTokensBuilder<'a>
impl<'a> Unpin for ProjectAccessTokensBuilder<'a>
impl<'a> UnwindSafe for ProjectAccessTokensBuilder<'a>
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> 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