Struct k8s_openapi::api::authentication::v1::TokenReviewStatus
source · [−]pub struct TokenReviewStatus {
pub audiences: Option<Vec<String>>,
pub authenticated: Option<bool>,
pub error: Option<String>,
pub user: Option<UserInfo>,
}
Expand description
TokenReviewStatus is the result of the token authentication request.
Fields
audiences: Option<Vec<String>>
Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token’s audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is “true”, the token is valid against the audience of the Kubernetes API server.
authenticated: Option<bool>
Authenticated indicates that the token was associated with a known user.
error: Option<String>
Error indicates that the token couldn’t be checked
user: Option<UserInfo>
User is the UserInfo associated with the provided token.
Trait Implementations
sourceimpl Clone for TokenReviewStatus
impl Clone for TokenReviewStatus
sourcefn clone(&self) -> TokenReviewStatus
fn clone(&self) -> TokenReviewStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TokenReviewStatus
impl Debug for TokenReviewStatus
sourceimpl DeepMerge for TokenReviewStatus
impl DeepMerge for TokenReviewStatus
sourcefn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge other
into self
.
sourceimpl Default for TokenReviewStatus
impl Default for TokenReviewStatus
sourcefn default() -> TokenReviewStatus
fn default() -> TokenReviewStatus
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TokenReviewStatus
impl<'de> Deserialize<'de> for TokenReviewStatus
sourcefn 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
sourceimpl PartialEq<TokenReviewStatus> for TokenReviewStatus
impl PartialEq<TokenReviewStatus> for TokenReviewStatus
sourcefn eq(&self, other: &TokenReviewStatus) -> bool
fn eq(&self, other: &TokenReviewStatus) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for TokenReviewStatus
impl Serialize for TokenReviewStatus
impl StructuralPartialEq for TokenReviewStatus
Auto Trait Implementations
impl RefUnwindSafe for TokenReviewStatus
impl Send for TokenReviewStatus
impl Sync for TokenReviewStatus
impl Unpin for TokenReviewStatus
impl UnwindSafe for TokenReviewStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more