pub enum PathSegment {
Key(String),
NamedElement {
match_key: String,
match_value: String,
},
Index(u16),
Unmatched,
}Expand description
A segment in the path to a diff location.
Variants§
Key(String)
An object key (e.g. spec in spec.containers).
NamedElement
An array element matched by a distinguished key (e.g. name: FOO).
Fields
Index(u16)
An array element matched by position.
Unmatched
An expected array element with no matching actual element.
Used with key-based and contains matching when no candidate was found in the actual array.
Implementations§
Auto Trait Implementations§
impl Freeze for PathSegment
impl RefUnwindSafe for PathSegment
impl Send for PathSegment
impl Sync for PathSegment
impl Unpin for PathSegment
impl UnsafeUnpin for PathSegment
impl UnwindSafe for PathSegment
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