#[non_exhaustive]pub struct SignJwtRequest {
pub name: String,
pub payload: String,
/* private fields */
}Expand description
Deprecated. Migrate to Service Account Credentials API.
The service account sign JWT request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. Deprecated. Migrate to Service Account Credentials API.
The resource name of the service account in the following format:
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}.
Using - as a wildcard for the PROJECT_ID will infer the project from
the account. The ACCOUNT value can be the email address or the
unique_id of the service account.
payload: StringRequired. Deprecated. Migrate to Service Account Credentials API.
The JWT payload to sign. Must be a serialized JSON object that contains a
JWT Claims Set. For example: {"sub": "user@example.com", "iat": 313435}
If the JWT Claims Set contains an expiration time (exp) claim, it must be
an integer timestamp that is not in the past and no more than 12 hours in
the future.
If the JWT Claims Set does not contain an expiration time (exp) claim,
this claim is added automatically, with a timestamp that is 1 hour in the
future.
Implementations§
Trait Implementations§
Source§impl Clone for SignJwtRequest
impl Clone for SignJwtRequest
Source§fn clone(&self) -> SignJwtRequest
fn clone(&self) -> SignJwtRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more