pub struct KubeConfig {
pub kind: Option<String>,
pub api_version: Option<String>,
pub preferences: Option<Preferences>,
pub clusters: Vec<NamedCluster>,
pub auth_infos: Vec<NamedAuthInfo>,
pub contexts: Vec<NamedContext>,
pub current_context: String,
pub extensions: Option<Vec<NamedExtension>>,
}
Fields§
§kind: Option<String>
§api_version: Option<String>
§preferences: Option<Preferences>
§clusters: Vec<NamedCluster>
§auth_infos: Vec<NamedAuthInfo>
§contexts: Vec<NamedContext>
§current_context: String
§extensions: Option<Vec<NamedExtension>>
Implementations§
Source§impl KubeConfig
impl KubeConfig
Trait Implementations§
Source§impl Clone for KubeConfig
impl Clone for KubeConfig
Source§fn clone(&self) -> KubeConfig
fn clone(&self) -> KubeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KubeConfig
impl Debug for KubeConfig
Source§impl<'de> Deserialize<'de> for KubeConfig
impl<'de> Deserialize<'de> for KubeConfig
Source§fn 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
Auto Trait Implementations§
impl Freeze for KubeConfig
impl RefUnwindSafe for KubeConfig
impl Send for KubeConfig
impl Sync for KubeConfig
impl Unpin for KubeConfig
impl UnwindSafe for KubeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more