Struct gauthz::AccessToken [] [src]

pub struct AccessToken { /* fields omitted */ }

An access token can be used to authenticate google api requests

Instances of these can be onbtained from one of the methods provided by gauthz.Tokens

Methods

impl AccessToken
[src]

[src]

Returns string value of access token

This is typically the value you use for HTTP Authorization: Bearer header values

[src]

Returns true if this access token has has expired

This is typically one hour in practice

Trait Implementations

impl Default for AccessToken
[src]

[src]

Returns the "default value" for a type. Read more

impl PartialEq for AccessToken
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for AccessToken
[src]

[src]

Formats the value using the given formatter.

impl Clone for AccessToken
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more