pub struct KubeConfigValue {
pub api_version: Option<String>,
pub clusters: Option<Vec<KubeconfigNamedCluster>>,
pub contexts: Option<Vec<KubeconfigNamedContext>>,
pub current_context: Option<String>,
pub kind: Option<String>,
pub users: Option<Vec<KubeconfigUser>>,
}Fields§
§api_version: Option<String>§clusters: Option<Vec<KubeconfigNamedCluster>>§contexts: Option<Vec<KubeconfigNamedContext>>§current_context: Option<String>§kind: Option<String>§users: Option<Vec<KubeconfigUser>>Implementations§
Source§impl KubeConfigValue
impl KubeConfigValue
pub fn new() -> KubeConfigValue
Trait Implementations§
Source§impl Clone for KubeConfigValue
impl Clone for KubeConfigValue
Source§fn clone(&self) -> KubeConfigValue
fn clone(&self) -> KubeConfigValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KubeConfigValue
impl Debug for KubeConfigValue
Source§impl Default for KubeConfigValue
impl Default for KubeConfigValue
Source§fn default() -> KubeConfigValue
fn default() -> KubeConfigValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KubeConfigValue
impl<'de> Deserialize<'de> for KubeConfigValue
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
Source§impl PartialEq for KubeConfigValue
impl PartialEq for KubeConfigValue
Source§fn eq(&self, other: &KubeConfigValue) -> bool
fn eq(&self, other: &KubeConfigValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KubeConfigValue
impl Serialize for KubeConfigValue
impl StructuralPartialEq for KubeConfigValue
Auto Trait Implementations§
impl Freeze for KubeConfigValue
impl RefUnwindSafe for KubeConfigValue
impl Send for KubeConfigValue
impl Sync for KubeConfigValue
impl Unpin for KubeConfigValue
impl UnsafeUnpin for KubeConfigValue
impl UnwindSafe for KubeConfigValue
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