Struct k8s_openapi::api::authentication::v1::TokenReviewSpec
source · pub struct TokenReviewSpec {
pub audiences: Option<Vec<String>>,
pub token: Option<String>,
}
Expand description
TokenReviewSpec is a description of the token authentication request.
Fields§
§audiences: Option<Vec<String>>
Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.
token: Option<String>
Token is the opaque bearer token.
Trait Implementations§
source§impl Clone for TokenReviewSpec
impl Clone for TokenReviewSpec
source§fn clone(&self) -> TokenReviewSpec
fn clone(&self) -> TokenReviewSpec
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TokenReviewSpec
impl Debug for TokenReviewSpec
source§impl DeepMerge for TokenReviewSpec
impl DeepMerge for TokenReviewSpec
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for TokenReviewSpec
impl Default for TokenReviewSpec
source§fn default() -> TokenReviewSpec
fn default() -> TokenReviewSpec
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TokenReviewSpec
impl<'de> Deserialize<'de> for TokenReviewSpec
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<TokenReviewSpec> for TokenReviewSpec
impl PartialEq<TokenReviewSpec> for TokenReviewSpec
source§fn eq(&self, other: &TokenReviewSpec) -> bool
fn eq(&self, other: &TokenReviewSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.