[][src]Struct kube_conf::context::Context

pub struct Context {
    pub name: String,
    pub cluster: String,
    pub namespace: Option<String>,
    pub user: String,
}

A context represents a mapping between known users in the users set and servers in the clusters set. By looking them up here

Note: The context struct is flattened when compared to its representation in the yaml file. There is no context mapping, the values of the context mapping are directly accessible on the Context struct.

Fields

name: String

The name given to this context by the user

cluster: String

The cluster name this context refers to

namespace: Option<String>

The default namespace to use with this context

user: String

The user name this cluster refers to

Trait Implementations

impl Clone for Context[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Context[src]

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

Auto Trait Implementations

impl Send for Context

impl Sync for Context

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

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