pub enum ValueKind {
Scalar = 0,
PartialScalar = 1,
Fragment = 2,
Serialized = 3,
YamlSerialized = 4,
}Expand description
How a value contributes to rendered YAML.
Variants§
Scalar = 0
A complete scalar value.
PartialScalar = 1
Text contributing only part of a scalar token.
Fragment = 2
A structurally parsed YAML fragment.
Serialized = 3
A serialization transform preserves dependency provenance without exposing input shape.
YamlSerialized = 4
toYaml accepts any input shape, while the rendered YAML fragment’s
structural placement can still constrain the resulting document.
Trait Implementations§
impl Copy for ValueKind
Source§impl<'de> Deserialize<'de> for ValueKind
impl<'de> Deserialize<'de> for ValueKind
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
impl Eq for ValueKind
Source§impl Ord for ValueKind
impl Ord for ValueKind
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 PartialOrd for ValueKind
impl PartialOrd for ValueKind
impl StructuralPartialEq for ValueKind
Auto Trait Implementations§
impl Freeze for ValueKind
impl RefUnwindSafe for ValueKind
impl Send for ValueKind
impl Sync for ValueKind
impl Unpin for ValueKind
impl UnsafeUnpin for ValueKind
impl UnwindSafe for ValueKind
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