pub enum GuardValue {
String(String),
Bool(bool),
Int(i64),
Float(String),
Null,
}Expand description
Scalar literal used by values-decidable guard comparisons.
Helm eq / ne conditions can compare against strings, booleans, numbers,
and nil. Keeping the literal typed prevents static analysis from degrading
eq .Values.enabled false into a misleading truthiness guard.
Variants§
String(String)
UTF-8 string literal.
Bool(bool)
Boolean literal.
Int(i64)
Signed integer literal.
Float(String)
Finite floating-point literal stored in canonical textual form.
Null
Explicit null literal.
Implementations§
Trait Implementations§
Source§impl Clone for GuardValue
impl Clone for GuardValue
Source§fn clone(&self) -> GuardValue
fn clone(&self) -> GuardValue
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 GuardValue
impl Debug for GuardValue
Source§impl<'de> Deserialize<'de> for GuardValue
impl<'de> Deserialize<'de> for GuardValue
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 Display for GuardValue
impl Display for GuardValue
impl Eq for GuardValue
Source§impl Hash for GuardValue
impl Hash for GuardValue
Source§impl Ord for GuardValue
impl Ord for GuardValue
Source§fn cmp(&self, other: &GuardValue) -> Ordering
fn cmp(&self, other: &GuardValue) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GuardValue
impl PartialEq for GuardValue
Source§impl PartialOrd for GuardValue
impl PartialOrd for GuardValue
Source§impl Serialize for GuardValue
impl Serialize for GuardValue
impl StructuralPartialEq for GuardValue
Auto Trait Implementations§
impl Freeze for GuardValue
impl RefUnwindSafe for GuardValue
impl Send for GuardValue
impl Sync for GuardValue
impl Unpin for GuardValue
impl UnsafeUnpin for GuardValue
impl UnwindSafe for GuardValue
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