#[non_exhaustive]pub struct AccessTokenSummaryBuilder { /* private fields */ }
Expand description
A builder for AccessTokenSummary
.
Implementations§
source§impl AccessTokenSummaryBuilder
impl AccessTokenSummaryBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The system-generated ID of the personal access token.
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The system-generated ID of the personal access token.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The friendly name of the personal access token.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The friendly name of the personal access token.
sourcepub fn expires_time(self, input: DateTime) -> Self
pub fn expires_time(self, input: DateTime) -> Self
The date and time when the personal access token will expire, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
sourcepub fn set_expires_time(self, input: Option<DateTime>) -> Self
pub fn set_expires_time(self, input: Option<DateTime>) -> Self
The date and time when the personal access token will expire, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
sourcepub fn get_expires_time(&self) -> &Option<DateTime>
pub fn get_expires_time(&self) -> &Option<DateTime>
The date and time when the personal access token will expire, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
sourcepub fn build(self) -> Result<AccessTokenSummary, BuildError>
pub fn build(self) -> Result<AccessTokenSummary, BuildError>
Consumes the builder and constructs a AccessTokenSummary
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AccessTokenSummaryBuilder
impl Clone for AccessTokenSummaryBuilder
source§fn clone(&self) -> AccessTokenSummaryBuilder
fn clone(&self) -> AccessTokenSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccessTokenSummaryBuilder
impl Debug for AccessTokenSummaryBuilder
source§impl Default for AccessTokenSummaryBuilder
impl Default for AccessTokenSummaryBuilder
source§fn default() -> AccessTokenSummaryBuilder
fn default() -> AccessTokenSummaryBuilder
source§impl PartialEq for AccessTokenSummaryBuilder
impl PartialEq for AccessTokenSummaryBuilder
source§fn eq(&self, other: &AccessTokenSummaryBuilder) -> bool
fn eq(&self, other: &AccessTokenSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AccessTokenSummaryBuilder
Auto Trait Implementations§
impl Freeze for AccessTokenSummaryBuilder
impl RefUnwindSafe for AccessTokenSummaryBuilder
impl Send for AccessTokenSummaryBuilder
impl Sync for AccessTokenSummaryBuilder
impl Unpin for AccessTokenSummaryBuilder
impl UnwindSafe for AccessTokenSummaryBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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