#[non_exhaustive]pub struct CreateAccessTokenOutput {
pub secret: String,
pub name: String,
pub expires_time: DateTime,
pub access_token_id: String,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.secret: String
The secret value of the personal access token.
name: String
The friendly name of the personal access token.
expires_time: DateTime
The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in RFC 3339. If not specified, the default is one year from creation.
access_token_id: String
The system-generated unique ID of the access token.
Implementations§
source§impl CreateAccessTokenOutput
impl CreateAccessTokenOutput
sourcepub fn expires_time(&self) -> &DateTime
pub fn expires_time(&self) -> &DateTime
The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in RFC 3339. If not specified, the default is one year from creation.
sourcepub fn access_token_id(&self) -> &str
pub fn access_token_id(&self) -> &str
The system-generated unique ID of the access token.
source§impl CreateAccessTokenOutput
impl CreateAccessTokenOutput
sourcepub fn builder() -> CreateAccessTokenOutputBuilder
pub fn builder() -> CreateAccessTokenOutputBuilder
Creates a new builder-style object to manufacture CreateAccessTokenOutput
.
Trait Implementations§
source§impl Clone for CreateAccessTokenOutput
impl Clone for CreateAccessTokenOutput
source§fn clone(&self) -> CreateAccessTokenOutput
fn clone(&self) -> CreateAccessTokenOutput
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 CreateAccessTokenOutput
impl Debug for CreateAccessTokenOutput
source§impl PartialEq for CreateAccessTokenOutput
impl PartialEq for CreateAccessTokenOutput
source§fn eq(&self, other: &CreateAccessTokenOutput) -> bool
fn eq(&self, other: &CreateAccessTokenOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for CreateAccessTokenOutput
impl RequestId for CreateAccessTokenOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
Returns the request ID, or
None
if the service could not be reached.impl StructuralPartialEq for CreateAccessTokenOutput
Auto Trait Implementations§
impl RefUnwindSafe for CreateAccessTokenOutput
impl Send for CreateAccessTokenOutput
impl Sync for CreateAccessTokenOutput
impl Unpin for CreateAccessTokenOutput
impl UnwindSafe for CreateAccessTokenOutput
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> 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>
Creates a shared type from an unshared type.