pub enum PathFragment {
Key(String),
Index(i32),
}
Expand description
Part of a path in a query. It can be an object key or an array index. See Error
.
Variants§
Trait Implementations§
Source§impl Clone for PathFragment
impl Clone for PathFragment
Source§fn clone(&self) -> PathFragment
fn clone(&self) -> PathFragment
Returns a copy of the value. Read more
1.0.0 · 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 PathFragment
impl Debug for PathFragment
Source§impl<'de> Deserialize<'de> for PathFragment
impl<'de> Deserialize<'de> for PathFragment
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 Display for PathFragment
impl Display for PathFragment
Source§impl PartialEq for PathFragment
impl PartialEq for PathFragment
Source§impl Serialize for PathFragment
impl Serialize for PathFragment
impl Eq for PathFragment
impl StructuralPartialEq for PathFragment
Auto Trait Implementations§
impl Freeze for PathFragment
impl RefUnwindSafe for PathFragment
impl Send for PathFragment
impl Sync for PathFragment
impl Unpin for PathFragment
impl UnwindSafe for PathFragment
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