Struct k8s_openapi_ext::metav1::FieldsV1
source · pub struct FieldsV1(pub Value);
Expand description
FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.
Each key is either a ‘.’ representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: ‘f:<name>’, where <name> is the name of a field in a struct, or key in a map ‘v:<value>’, where <value> is the exact json formatted value of a list item ‘i:<index>’, where <index> is position of a item in a list ‘k:<keys>’, where <keys> is a map of a list item’s key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.
The exact format is defined in sigs.k8s.io/structured-merge-diff
Tuple Fields§
§0: Value
Trait Implementations§
source§impl DeepMerge for FieldsV1
impl DeepMerge for FieldsV1
source§fn merge_from(&mut self, other: FieldsV1)
fn merge_from(&mut self, other: FieldsV1)
Merge
other
into self
.source§impl<'de> Deserialize<'de> for FieldsV1
impl<'de> Deserialize<'de> for FieldsV1
source§fn deserialize<D>(
deserializer: D
) -> Result<FieldsV1, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<FieldsV1, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<FieldsV1> for FieldsV1
impl PartialEq<FieldsV1> for FieldsV1
source§impl Serialize for FieldsV1
impl Serialize for FieldsV1
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more