Struct k8_config::ContextDetail
source · pub struct ContextDetail {
pub cluster: String,
pub user: String,
pub namespace: Option<String>,
}
Fields§
§cluster: String
§user: String
§namespace: Option<String>
Implementations§
Trait Implementations§
source§impl Debug for ContextDetail
impl Debug for ContextDetail
source§impl Default for ContextDetail
impl Default for ContextDetail
source§fn default() -> ContextDetail
fn default() -> ContextDetail
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ContextDetail
impl<'de> Deserialize<'de> for ContextDetail
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<ContextDetail> for ContextDetail
impl PartialEq<ContextDetail> for ContextDetail
source§fn eq(&self, other: &ContextDetail) -> bool
fn eq(&self, other: &ContextDetail) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ContextDetail
impl Serialize for ContextDetail
impl Eq for ContextDetail
impl StructuralEq for ContextDetail
impl StructuralPartialEq for ContextDetail
Auto Trait Implementations§
impl RefUnwindSafe for ContextDetail
impl Send for ContextDetail
impl Sync for ContextDetail
impl Unpin for ContextDetail
impl UnwindSafe for ContextDetail
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.