pub struct FileReadWindowResponse {
pub path: PathBuf,
pub lines: Vec<FileLine>,
pub file_bytes: u64,
pub truncated: bool,
pub next_byte_offset: u64,
}Fields§
§path: PathBuf§lines: Vec<FileLine>§file_bytes: u64File size in bytes at read time.
truncated: booltrue when the response was clamped by line / byte cap.
next_byte_offset: u64First byte offset past the last line returned. Lets the caller compute a follow-up window without rereading.
Trait Implementations§
Source§impl Clone for FileReadWindowResponse
impl Clone for FileReadWindowResponse
Source§fn clone(&self) -> FileReadWindowResponse
fn clone(&self) -> FileReadWindowResponse
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 moreSource§impl Debug for FileReadWindowResponse
impl Debug for FileReadWindowResponse
Source§impl<'de> Deserialize<'de> for FileReadWindowResponse
impl<'de> Deserialize<'de> for FileReadWindowResponse
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 FileReadWindowResponse
impl RefUnwindSafe for FileReadWindowResponse
impl Send for FileReadWindowResponse
impl Sync for FileReadWindowResponse
impl Unpin for FileReadWindowResponse
impl UnsafeUnpin for FileReadWindowResponse
impl UnwindSafe for FileReadWindowResponse
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