Struct gapi_grpc::google::iam::credentials::v1::GenerateIdTokenRequest[][src]

pub struct GenerateIdTokenRequest {
    pub name: String,
    pub delegates: Vec<String>,
    pub audience: String,
    pub include_email: bool,
}

Fields

name: String

Required. The resource name of the service account for which the credentials are requested, in the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

delegates: 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.

audience: String

Required. The audience for the token, such as the API or account that this token grants access to.

include_email: bool

Include the service account email in the token. If set to true, the token will contain email and email_verified claims.

Trait Implementations

impl Clone for GenerateIdTokenRequest[src]

impl Debug for GenerateIdTokenRequest[src]

impl Default for GenerateIdTokenRequest[src]

impl Message for GenerateIdTokenRequest[src]

impl PartialEq<GenerateIdTokenRequest> for GenerateIdTokenRequest[src]

impl StructuralPartialEq for GenerateIdTokenRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for GenerateIdTokenRequest

impl Send for GenerateIdTokenRequest

impl Sync for GenerateIdTokenRequest

impl Unpin for GenerateIdTokenRequest

impl UnwindSafe for GenerateIdTokenRequest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]