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
sourceimpl DeepMerge for FieldsV1
impl DeepMerge for FieldsV1
sourcefn merge_from(&mut self, other: FieldsV1)
fn merge_from(&mut self, other: FieldsV1)
Merge
other
into self
.sourceimpl<'de> Deserialize<'de> for FieldsV1
impl<'de> Deserialize<'de> for FieldsV1
sourcefn 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
sourceimpl Serialize for FieldsV1
impl Serialize for FieldsV1
sourcefn 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
impl StructuralPartialEq for FieldsV1
Auto Trait Implementations
impl RefUnwindSafe for FieldsV1
impl Send for FieldsV1
impl Sync for FieldsV1
impl Unpin for FieldsV1
impl UnwindSafe for FieldsV1
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more