[][src]Struct k8s_openapi::api::authentication::v1::TokenRequest

pub struct TokenRequest {
    pub metadata: ObjectMeta,
    pub spec: TokenRequestSpec,
    pub status: Option<TokenRequestStatus>,
}

TokenRequest requests a token for a given service account.

Fields

metadata: ObjectMetaspec: TokenRequestSpecstatus: Option<TokenRequestStatus>

Implementations

impl TokenRequest[src]

pub fn create_namespaced_service_account_token(
    name: &str,
    namespace: &str,
    body: &TokenRequest,
    optional: CreateOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
[src]

create token of a ServiceAccount

Use the returned crate::ResponseBody<crate::CreateResponse<Self>> constructor, or crate::CreateResponse<Self> directly, to parse the HTTP response.

Arguments

  • name

    name of the TokenRequest

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

Trait Implementations

impl Clone for TokenRequest[src]

impl Debug for TokenRequest[src]

impl Default for TokenRequest[src]

impl<'de> Deserialize<'de> for TokenRequest[src]

impl Metadata for TokenRequest[src]

type Ty = ObjectMeta

The type of the metadata object.

impl PartialEq<TokenRequest> for TokenRequest[src]

impl Resource for TokenRequest[src]

impl Serialize for TokenRequest[src]

impl StructuralPartialEq for TokenRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.