pub struct Options {
pub image: (String, PathBuf),
pub size: (u32, u32),
pub preserve_aspect: bool,
pub ansi_out: Option<AnsiOutputFormat>,
}
Expand description
Representation of the application’s all configurable values.
Fields§
§image: (String, PathBuf)
Image file to display.
This tuple contains the plaintext name (user-friendly) and a normalised path (programmer-friendly).
size: (u32, u32)
Output size. Default: detected from terminal size or no default.
preserve_aspect: bool
Whether to preserve the image’s aspect ratio when resizing. Default: true
.
ansi_out: Option<AnsiOutputFormat>
Whether to output ANSI escapes and in which format. Default: None
on Windooze when not writing to a file.
Implementations§
Trait Implementations§
source§impl PartialEq<Options> for Options
impl PartialEq<Options> for Options
impl Eq for Options
impl StructuralEq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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