[−][src]Struct k8_config::KubeConfig
Fields
api_version: String
clusters: Vec<Cluster>
contexts: Vec<Context>
current_context: String
kind: String
users: Vec<User>
Implementations
impl KubeConfig
[src]
pub fn from_home() -> Result<Self, ConfigError>
[src]
read from default home directory
pub fn from_file<T: AsRef<Path>>(path: T) -> Result<Self, ConfigError>
[src]
pub fn current_context(&self) -> Option<&Context>
[src]
pub fn current_cluster(&self) -> Option<&Cluster>
[src]
pub fn current_user(&self) -> Option<&User>
[src]
Trait Implementations
impl Debug for KubeConfig
[src]
impl<'de> Deserialize<'de> for KubeConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<KubeConfig> for KubeConfig
[src]
fn eq(&self, other: &KubeConfig) -> bool
[src]
fn ne(&self, other: &KubeConfig) -> bool
[src]
impl StructuralPartialEq for KubeConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for KubeConfig
impl Send for KubeConfig
impl Sync for KubeConfig
impl Unpin for KubeConfig
impl UnwindSafe for KubeConfig
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,
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, 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.
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>,