pub struct JsonGrepMatch {
pub field: String,
pub lines: Vec<usize>,
pub context_start: usize,
pub context_end: usize,
pub content: String,
}Expand description
One grep match within a JSON structure.
Fields§
§field: StringDotted JSON path to the field where the match occurred.
lines: Vec<usize>1-indexed line numbers of matching lines within the field’s value.
context_start: usize§context_end: usize§content: StringTrait Implementations§
Source§impl Clone for JsonGrepMatch
impl Clone for JsonGrepMatch
Source§fn clone(&self) -> JsonGrepMatch
fn clone(&self) -> JsonGrepMatch
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 moreAuto Trait Implementations§
impl Freeze for JsonGrepMatch
impl RefUnwindSafe for JsonGrepMatch
impl Send for JsonGrepMatch
impl Sync for JsonGrepMatch
impl Unpin for JsonGrepMatch
impl UnsafeUnpin for JsonGrepMatch
impl UnwindSafe for JsonGrepMatch
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