pub enum Selector {
Name(String),
Wildcard,
Index(i64),
Slice(Option<i64>, Option<i64>, Option<i64>),
Filter(Filter),
}
Expand description
Enum representing different types of selectors in a JSONPath query.
Variants§
Name(String)
Represents a name selector.
Wildcard
Represents a wildcard selector.
Index(i64)
Represents an index selector.
Slice(Option<i64>, Option<i64>, Option<i64>)
Represents a slice selector.
Filter(Filter)
Represents a filter selector.
Trait Implementations§
impl StructuralPartialEq for Selector
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnwindSafe for Selector
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