#[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.
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.
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 build(self) -> AccessTokenSummary
pub fn build(self) -> AccessTokenSummary
Consumes the builder and constructs a AccessTokenSummary
.
Trait Implementations§
source§impl Clone for AccessTokenSummaryBuilder
impl Clone for AccessTokenSummaryBuilder
source§fn clone(&self) -> AccessTokenSummaryBuilder
fn clone(&self) -> AccessTokenSummaryBuilder
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 AccessTokenSummaryBuilder
impl Debug for AccessTokenSummaryBuilder
source§impl Default for AccessTokenSummaryBuilder
impl Default for AccessTokenSummaryBuilder
source§fn default() -> AccessTokenSummaryBuilder
fn default() -> AccessTokenSummaryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<AccessTokenSummaryBuilder> for AccessTokenSummaryBuilder
impl PartialEq<AccessTokenSummaryBuilder> for AccessTokenSummaryBuilder
source§fn eq(&self, other: &AccessTokenSummaryBuilder) -> bool
fn eq(&self, other: &AccessTokenSummaryBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AccessTokenSummaryBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more