pub struct JsonPathContext { /* private fields */ }Expand description
JSON-path context for tracking current location during streaming
Implementations§
Source§impl JsonPathContext
impl JsonPathContext
Sourcepub fn enter_scope(&mut self, segment: &str)
pub fn enter_scope(&mut self, segment: &str)
Enter a new scope (object or array)
Sourcepub fn exit_scope(&mut self)
pub fn exit_scope(&mut self)
Exit current scope
Sourcepub fn current_path(&self) -> String
pub fn current_path(&self) -> String
Get current full path
Sourcepub fn should_process(&self) -> bool
pub fn should_process(&self) -> bool
Check if current path should be processed
Sourcepub fn is_path_relevant(&self, path: &str) -> bool
pub fn is_path_relevant(&self, path: &str) -> bool
Check if a specific path is relevant
Trait Implementations§
Source§impl Clone for JsonPathContext
impl Clone for JsonPathContext
Source§fn clone(&self) -> JsonPathContext
fn clone(&self) -> JsonPathContext
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 moreAuto Trait Implementations§
impl Freeze for JsonPathContext
impl RefUnwindSafe for JsonPathContext
impl Send for JsonPathContext
impl Sync for JsonPathContext
impl Unpin for JsonPathContext
impl UnwindSafe for JsonPathContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more