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 for TokenReviewSpec
impl PartialEq for TokenReviewSpec
Source§impl Serialize for TokenReviewSpec
impl Serialize for TokenReviewSpec
impl StructuralPartialEq for TokenReviewSpec
Auto Trait Implementations§
impl Freeze for TokenReviewSpec
impl RefUnwindSafe for TokenReviewSpec
impl Send for TokenReviewSpec
impl Sync for TokenReviewSpec
impl Unpin for TokenReviewSpec
impl UnwindSafe for TokenReviewSpec
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
Mutably borrows from an owned value. Read more