pub struct GrepOptions { /* private fields */ }Expand description
Optional grep parameters.
Implementations§
Source§impl GrepOptions
impl GrepOptions
pub fn new() -> Self
Sourcepub fn path(self, path: impl Into<String>) -> Self
pub fn path(self, path: impl Into<String>) -> Self
Directory to search under. Defaults to "/" server-side when omitted.
Sourcepub fn glob(self, glob: impl Into<String>) -> Self
pub fn glob(self, glob: impl Into<String>) -> Self
Restrict which files are searched by this glob.
Sourcepub fn max_matches(self, max_matches: u32) -> Self
pub fn max_matches(self, max_matches: u32) -> Self
Maximum number of matches to return (default 500 server-side).
Trait Implementations§
Source§impl Clone for GrepOptions
impl Clone for GrepOptions
Source§impl Debug for GrepOptions
impl Debug for GrepOptions
Auto Trait Implementations§
impl Freeze for GrepOptions
impl RefUnwindSafe for GrepOptions
impl Send for GrepOptions
impl Sync for GrepOptions
impl Unpin for GrepOptions
impl UnsafeUnpin for GrepOptions
impl UnwindSafe for GrepOptions
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