Struct gcloud_sdk::Token
source · pub struct Token {
pub token_type: String,
pub token: SecretValue,
pub expiry: DateTime<Utc>,
}Fields§
§token_type: String§token: SecretValue§expiry: DateTime<Utc>Implementations§
source§impl Token
impl Token
pub fn new( token_type: String, token: SecretValue, expiry: DateTime<Utc> ) -> Self
pub fn header_value(&self) -> String
pub async fn generate_for_scopes( token_source_type: TokenSourceType, token_scopes: Vec<String> ) -> Result<Token>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request