pub enum PathStepWire {
Index(usize),
Key(String),
}Expand description
One step in a nested fill path: an object key or an array index. Serializes
untagged — a key as a JSON string, an index as a JSON number — so a path
is a plain JS array like ["addr", "street"] or ["recipients", 0, "name"].
Variants§
Trait Implementations§
Source§impl Clone for PathStepWire
impl Clone for PathStepWire
Source§fn clone(&self) -> PathStepWire
fn clone(&self) -> PathStepWire
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 PathStepWire
impl Debug for PathStepWire
Source§impl<'de> Deserialize<'de> for PathStepWire
impl<'de> Deserialize<'de> for PathStepWire
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 From<&PathSegment> for PathStepWire
impl From<&PathSegment> for PathStepWire
Source§fn from(seg: &PathSegment) -> Self
fn from(seg: &PathSegment) -> Self
Converts to this type from the input type.
Source§impl From<&PathStepWire> for PathSegment
impl From<&PathStepWire> for PathSegment
Source§fn from(seg: &PathStepWire) -> Self
fn from(seg: &PathStepWire) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PathStepWire
impl PartialEq for PathStepWire
Source§impl Serialize for PathStepWire
impl Serialize for PathStepWire
impl StructuralPartialEq for PathStepWire
Auto Trait Implementations§
impl Freeze for PathStepWire
impl RefUnwindSafe for PathStepWire
impl Send for PathStepWire
impl Sync for PathStepWire
impl Unpin for PathStepWire
impl UnsafeUnpin for PathStepWire
impl UnwindSafe for PathStepWire
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