Enum grep_json_deserialize::Type
source · pub enum Type {
Begin {
path: ArbitraryData,
},
End {
path: ArbitraryData,
binary_offset: Option<isize>,
stats: Stats,
},
Match {
path: ArbitraryData,
lines: ArbitraryData,
line_number: Option<usize>,
absolute_offset: isize,
submatches: Vec<Submatch>,
},
Context {
path: ArbitraryData,
lines: ArbitraryData,
line_number: Option<usize>,
absolute_offset: isize,
submatches: Vec<Submatch>,
},
}
Expand description
A parser for the output of grep_printer::JSON.
Created to deserialize ripgrep
--json
output for rg_replace.
Variants§
Begin
Fields
§
path: ArbitraryData
As specified in: message-begin.
End
As specified in: message-end.
Match
As specified in: message-match.
Context
As specified in: message-context.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
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