Struct google_api_proto::google::iam::admin::v1::SignJwtRequest
source · pub struct SignJwtRequest {
pub name: String,
pub payload: String,
}
Expand description
Deprecated. Migrate to Service Account Credentials API.
The service account sign JWT request.
Fields§
§name: String
Required. 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: String
Required. 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.
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 moresource§impl Debug for SignJwtRequest
impl Debug for SignJwtRequest
source§impl Default for SignJwtRequest
impl Default for SignJwtRequest
source§impl Message for SignJwtRequest
impl Message for SignJwtRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SignJwtRequest
impl PartialEq for SignJwtRequest
source§fn eq(&self, other: &SignJwtRequest) -> bool
fn eq(&self, other: &SignJwtRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SignJwtRequest
Auto Trait Implementations§
impl Freeze for SignJwtRequest
impl RefUnwindSafe for SignJwtRequest
impl Send for SignJwtRequest
impl Sync for SignJwtRequest
impl Unpin for SignJwtRequest
impl UnwindSafe for SignJwtRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request