pub struct GrepSessionConfig {
pub cwd: String,
pub permissions: PermissionPolicy,
pub default_head_limit: Option<usize>,
pub max_bytes: Option<usize>,
pub max_line_length: Option<usize>,
pub max_filesize: Option<u64>,
pub timeout_ms: Option<u64>,
}Fields§
§cwd: String§permissions: PermissionPolicy§default_head_limit: Option<usize>§max_bytes: Option<usize>§max_line_length: Option<usize>§max_filesize: Option<u64>§timeout_ms: Option<u64>Implementations§
Source§impl GrepSessionConfig
impl GrepSessionConfig
pub fn new(cwd: impl Into<String>, permissions: PermissionPolicy) -> Self
Trait Implementations§
Source§impl Clone for GrepSessionConfig
impl Clone for GrepSessionConfig
Source§fn clone(&self) -> GrepSessionConfig
fn clone(&self) -> GrepSessionConfig
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 GrepSessionConfig
impl !RefUnwindSafe for GrepSessionConfig
impl Send for GrepSessionConfig
impl Sync for GrepSessionConfig
impl Unpin for GrepSessionConfig
impl UnsafeUnpin for GrepSessionConfig
impl !UnwindSafe for GrepSessionConfig
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