pub struct ReadOpts {
pub start_line: Option<usize>,
pub end_line: Option<usize>,
pub grep: Option<String>,
pub grep_context: Option<usize>,
pub max_matches: Option<usize>,
pub max_chars: Option<usize>,
pub rev: Option<String>,
}Fields§
§start_line: Option<usize>§end_line: Option<usize>§grep: Option<String>§grep_context: Option<usize>§max_matches: Option<usize>§max_chars: Option<usize>§rev: Option<String>When set, read the file’s content at this git revision
(tag / branch / SHA) via git show <rev>:<path> instead of the
working tree. The slicing / grep / max_chars pipeline is applied
to the historical content unchanged.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadOpts
impl RefUnwindSafe for ReadOpts
impl Send for ReadOpts
impl Sync for ReadOpts
impl Unpin for ReadOpts
impl UnsafeUnpin for ReadOpts
impl UnwindSafe for ReadOpts
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