pub struct GrepParams {
pub pattern: String,
pub path: Option<String>,
pub glob: Option<String>,
pub type: Option<String>,
pub output_mode: Option<GrepOutputMode>,
pub case_insensitive: Option<bool>,
pub multiline: Option<bool>,
pub context_before: Option<usize>,
pub context_after: Option<usize>,
pub context: Option<usize>,
pub head_limit: Option<usize>,
pub offset: Option<usize>,
}Expand description
Parsed + validated input params. Mirrors GrepParams in TS — all
fields optional except pattern. The camelCase→snake_case rename at
the wire boundary is handled by serde rename_all.
Fields§
§pattern: String§path: Option<String>§glob: Option<String>§type: Option<String>§output_mode: Option<GrepOutputMode>§case_insensitive: Option<bool>§multiline: Option<bool>§context_before: Option<usize>§context_after: Option<usize>§context: Option<usize>§head_limit: Option<usize>§offset: Option<usize>Trait Implementations§
Source§impl Clone for GrepParams
impl Clone for GrepParams
Source§fn clone(&self) -> GrepParams
fn clone(&self) -> GrepParams
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 Debug for GrepParams
impl Debug for GrepParams
Source§impl<'de> Deserialize<'de> for GrepParams
impl<'de> Deserialize<'de> for GrepParams
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
Auto Trait Implementations§
impl Freeze for GrepParams
impl RefUnwindSafe for GrepParams
impl Send for GrepParams
impl Sync for GrepParams
impl Unpin for GrepParams
impl UnsafeUnpin for GrepParams
impl UnwindSafe for GrepParams
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