pub struct GenerateIdTokenRequest {
pub audience: Option<String>,
pub delegates: Option<Vec<String>>,
pub include_email: Option<bool>,
}
Expand description
There is no detailed description.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§audience: Option<String>
Required. The audience for the token, such as the API or account that this token grants access to.
delegates: Option<Vec<String>>
The sequence of service accounts in a delegation chain. Each service account must be granted the roles/iam.serviceAccountTokenCreator
role on its next service account in the chain. The last service account in the chain must be granted the roles/iam.serviceAccountTokenCreator
role on the service account that is specified in the name
field of the request. The delegates must have the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}
. The -
wildcard character is required; replacing it with a project ID is invalid.
include_email: Option<bool>
Include the service account email in the token. If set to true
, the token will contain email
and email_verified
claims.
Trait Implementations§
source§impl Clone for GenerateIdTokenRequest
impl Clone for GenerateIdTokenRequest
source§fn clone(&self) -> GenerateIdTokenRequest
fn clone(&self) -> GenerateIdTokenRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GenerateIdTokenRequest
impl Debug for GenerateIdTokenRequest
source§impl Default for GenerateIdTokenRequest
impl Default for GenerateIdTokenRequest
source§fn default() -> GenerateIdTokenRequest
fn default() -> GenerateIdTokenRequest
source§impl<'de> Deserialize<'de> for GenerateIdTokenRequest
impl<'de> Deserialize<'de> for GenerateIdTokenRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for GenerateIdTokenRequest
impl Serialize for GenerateIdTokenRequest
impl RequestValue for GenerateIdTokenRequest
Auto Trait Implementations§
impl Freeze for GenerateIdTokenRequest
impl RefUnwindSafe for GenerateIdTokenRequest
impl Send for GenerateIdTokenRequest
impl Sync for GenerateIdTokenRequest
impl Unpin for GenerateIdTokenRequest
impl UnwindSafe for GenerateIdTokenRequest
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more