#[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 ==
.