pub struct QueryMatch<'s> {
pub path: SmolStr,
pub value: Option<&'s Data<'s>>,
}Expand description
A single match from a query operation
Fields§
§path: SmolStrPath where this value was found (e.g., “actors[0].handle”)
value: Option<&'s Data<'s>>The value (None if field was missing during wildcard iteration)
Trait Implementations§
Source§impl<'s> Clone for QueryMatch<'s>
impl<'s> Clone for QueryMatch<'s>
Source§fn clone(&self) -> QueryMatch<'s>
fn clone(&self) -> QueryMatch<'s>
Returns a duplicate 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<'s> Debug for QueryMatch<'s>
impl<'s> Debug for QueryMatch<'s>
Source§impl<'s> PartialEq for QueryMatch<'s>
impl<'s> PartialEq for QueryMatch<'s>
impl<'s> StructuralPartialEq for QueryMatch<'s>
Auto Trait Implementations§
impl<'s> Freeze for QueryMatch<'s>
impl<'s> RefUnwindSafe for QueryMatch<'s>
impl<'s> Send for QueryMatch<'s>
impl<'s> Sync for QueryMatch<'s>
impl<'s> Unpin for QueryMatch<'s>
impl<'s> UnsafeUnpin for QueryMatch<'s>
impl<'s> UnwindSafe for QueryMatch<'s>
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