pub struct DeviceTaint {
pub effect: String,
pub key: String,
pub time_added: Option<Time>,
pub value: Option<String>,
}
Expand description
The device this taint is attached to has the “effect” on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
Fields§
§effect: String
The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.
key: String
The taint key to be applied to a device. Must be a label name.
time_added: Option<Time>
TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.
value: Option<String>
The taint value corresponding to the taint key. Must be a label value.
Trait Implementations§
Source§impl Clone for DeviceTaint
impl Clone for DeviceTaint
Source§fn clone(&self) -> DeviceTaint
fn clone(&self) -> DeviceTaint
Returns a copy 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 DeviceTaint
impl Debug for DeviceTaint
Source§impl DeepMerge for DeviceTaint
impl DeepMerge for DeviceTaint
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for DeviceTaint
impl Default for DeviceTaint
Source§fn default() -> DeviceTaint
fn default() -> DeviceTaint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceTaint
impl<'de> Deserialize<'de> for DeviceTaint
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 DeviceTaint
impl PartialEq for DeviceTaint
Source§impl Serialize for DeviceTaint
impl Serialize for DeviceTaint
impl StructuralPartialEq for DeviceTaint
Auto Trait Implementations§
impl Freeze for DeviceTaint
impl RefUnwindSafe for DeviceTaint
impl Send for DeviceTaint
impl Sync for DeviceTaint
impl Unpin for DeviceTaint
impl UnwindSafe for DeviceTaint
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