pub struct ITermFileData {
pub name: Option<String>,
pub size: Option<usize>,
pub width: ITermDimension,
pub height: ITermDimension,
pub preserve_aspect_ratio: bool,
pub inline: bool,
pub do_not_move_cursor: bool,
pub data: Vec<u8>,
}
Fields
name: Option<String>
file name
size: Option<usize>
size of the data in bytes; this is used by iterm to show progress while waiting for the rest of the payload
width: ITermDimension
width to render
height: ITermDimension
height to render
preserve_aspect_ratio: bool
if true, preserve aspect ratio when fitting to width/height
inline: bool
if true, attempt to display in the terminal rather than downloading to the users download directory
do_not_move_cursor: bool
if true, do not move the cursor
data: Vec<u8>
The data to transfer
Trait Implementations
sourceimpl Clone for ITermFileData
impl Clone for ITermFileData
sourcefn clone(&self) -> ITermFileData
fn clone(&self) -> ITermFileData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ITermFileData
impl Debug for ITermFileData
sourceimpl Display for ITermFileData
impl Display for ITermFileData
sourceimpl PartialEq<ITermFileData> for ITermFileData
impl PartialEq<ITermFileData> for ITermFileData
sourcefn eq(&self, other: &ITermFileData) -> bool
fn eq(&self, other: &ITermFileData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ITermFileData) -> bool
fn ne(&self, other: &ITermFileData) -> bool
This method tests for !=
.
impl Eq for ITermFileData
impl StructuralEq for ITermFileData
impl StructuralPartialEq for ITermFileData
Auto Trait Implementations
impl RefUnwindSafe for ITermFileData
impl Send for ITermFileData
impl Sync for ITermFileData
impl Unpin for ITermFileData
impl UnwindSafe for ITermFileData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more