pub struct ReadContext {
pub file_path: String,
pub start_line: Option<usize>,
pub end_line: Option<usize>,
pub offset: Option<usize>,
pub limit: Option<usize>,
}Expand description
Context for file read operations
Fields§
§file_path: String§start_line: Option<usize>§end_line: Option<usize>§offset: Option<usize>§limit: Option<usize>Implementations§
Source§impl ReadContext
impl ReadContext
Trait Implementations§
Source§impl Clone for ReadContext
impl Clone for ReadContext
Source§fn clone(&self) -> ReadContext
fn clone(&self) -> ReadContext
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 ReadContext
impl Debug for ReadContext
Source§impl<'de> Deserialize<'de> for ReadContext
impl<'de> Deserialize<'de> for ReadContext
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 ReadContext
impl RefUnwindSafe for ReadContext
impl Send for ReadContext
impl Sync for ReadContext
impl Unpin for ReadContext
impl UnsafeUnpin for ReadContext
impl UnwindSafe for ReadContext
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