pub struct ReadTextFileOptions {
pub path: String,
pub encoding: Option<String>,
pub start_line: Option<usize>,
pub end_line: Option<usize>,
pub cancellation: CancellationToken,
}Expand description
Options for reading a text file.
Fields§
§path: StringPath inside the sandbox.
encoding: Option<String>Text encoding (utf-8 when absent).
start_line: Option<usize>1-based inclusive first line.
end_line: Option<usize>1-based inclusive last line; past the end reads through EOF.
cancellation: CancellationTokenCancels the read.
Implementations§
Trait Implementations§
Source§impl Clone for ReadTextFileOptions
impl Clone for ReadTextFileOptions
Source§fn clone(&self) -> ReadTextFileOptions
fn clone(&self) -> ReadTextFileOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReadTextFileOptions
impl RefUnwindSafe for ReadTextFileOptions
impl Send for ReadTextFileOptions
impl Sync for ReadTextFileOptions
impl Unpin for ReadTextFileOptions
impl UnsafeUnpin for ReadTextFileOptions
impl UnwindSafe for ReadTextFileOptions
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