pub struct ReadArgs {
pub path: String,
pub start_line: Option<usize>,
pub line_count: Option<usize>,
}Expand description
Arguments for ReadTool.
Fields§
§path: StringCorpus-relative path of the file to read.
start_line: Option<usize>1-based line to start at. Defaults to 1.
line_count: Option<usize>Number of lines to return. Clamped to the configured read limit.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ReadArgs
impl<'de> Deserialize<'de> for ReadArgs
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 ReadArgs
impl RefUnwindSafe for ReadArgs
impl Send for ReadArgs
impl Sync for ReadArgs
impl Unpin for ReadArgs
impl UnsafeUnpin for ReadArgs
impl UnwindSafe for ReadArgs
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