[−][src]Struct k8s_openapi::api::authentication::v1::TokenRequestSpec
TokenRequestSpec contains client provided parameters of a token request.
Fields
audiences: Vec<String>
Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.
bound_object_ref: Option<BoundObjectReference>
BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation.
expiration_seconds: Option<i64>
ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.
Trait Implementations
impl Clone for TokenRequestSpec
[src]
pub fn clone(&self) -> TokenRequestSpec
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TokenRequestSpec
[src]
impl Default for TokenRequestSpec
[src]
pub fn default() -> TokenRequestSpec
[src]
impl<'de> Deserialize<'de> for TokenRequestSpec
[src]
pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl PartialEq<TokenRequestSpec> for TokenRequestSpec
[src]
pub fn eq(&self, other: &TokenRequestSpec) -> bool
[src]
pub fn ne(&self, other: &TokenRequestSpec) -> bool
[src]
impl Serialize for TokenRequestSpec
[src]
impl StructuralPartialEq for TokenRequestSpec
[src]
Auto Trait Implementations
impl RefUnwindSafe for TokenRequestSpec
[src]
impl Send for TokenRequestSpec
[src]
impl Sync for TokenRequestSpec
[src]
impl Unpin for TokenRequestSpec
[src]
impl UnwindSafe for TokenRequestSpec
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,