pub struct FileContentsOptsBuilder { /* private fields */ }
Expand description
Builder for FileContentsOpts
.
Implementations§
Source§impl FileContentsOptsBuilder
impl FileContentsOptsBuilder
Sourcepub fn limit_lines<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
pub fn limit_lines<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
Maximum number of lines to read
Sourcepub fn offset_lines<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
pub fn offset_lines<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
Start reading after this line
Sourcepub fn build(&self) -> Result<FileContentsOpts, FileContentsOptsBuilderError>
pub fn build(&self) -> Result<FileContentsOpts, FileContentsOptsBuilderError>
Trait Implementations§
Source§impl Clone for FileContentsOptsBuilder
impl Clone for FileContentsOptsBuilder
Source§fn clone(&self) -> FileContentsOptsBuilder
fn clone(&self) -> FileContentsOptsBuilder
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 FileContentsOptsBuilder
impl RefUnwindSafe for FileContentsOptsBuilder
impl Send for FileContentsOptsBuilder
impl Sync for FileContentsOptsBuilder
impl Unpin for FileContentsOptsBuilder
impl UnwindSafe for FileContentsOptsBuilder
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