pub enum ReadOutput {
Text {
path: String,
content: String,
first_line: usize,
last_line: usize,
total_lines: Option<usize>,
truncated: bool,
partial_last_line: bool,
},
Image {
path: String,
mime: &'static str,
data: Vec<u8>,
},
Binary {
path: String,
size: u64,
},
}Expand description
Result of read.
Variants§
Text
Text content.
Fields
Image
A small PNG, JPEG, GIF or WebP image.
Fields
Binary
A binary file: reported, not dumped.
Trait Implementations§
Source§impl Clone for ReadOutput
impl Clone for ReadOutput
Source§impl Debug for ReadOutput
impl Debug for ReadOutput
impl Eq for ReadOutput
Source§impl PartialEq for ReadOutput
impl PartialEq for ReadOutput
impl StructuralPartialEq for ReadOutput
Auto Trait Implementations§
impl Freeze for ReadOutput
impl RefUnwindSafe for ReadOutput
impl Send for ReadOutput
impl Sync for ReadOutput
impl Unpin for ReadOutput
impl UnsafeUnpin for ReadOutput
impl UnwindSafe for ReadOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.