Enum tame_oauth::gcp::IdTokenOrRequest
source · pub enum IdTokenOrRequest {
AccessTokenRequest {
request: Request<Vec<u8>>,
reason: RequestReason,
audience_hash: u64,
},
IdTokenRequest {
request: IdTokenRequest,
reason: RequestReason,
audience_hash: u64,
},
IdToken(IdToken),
}
Expand description
Either a valid token, or an HTTP request. With some token sources, two different HTTP requests needs to be performed, one to get an access token and one to get the actual id token.
Variants§
Auto Trait Implementations§
impl !Freeze for IdTokenOrRequest
impl !RefUnwindSafe for IdTokenOrRequest
impl Send for IdTokenOrRequest
impl Sync for IdTokenOrRequest
impl Unpin for IdTokenOrRequest
impl !UnwindSafe for IdTokenOrRequest
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