[][src]Struct naut::cli::config::Config

pub struct Config<'a> {
    pub tool_name: &'static str,
    pub mode: InputOutputModeType,
    pub show_license_text_of: Option<SelectedLicenses>,
    pub selected_frame: FrameIndex,
    pub disable_automatic_color_type_adjustment: bool,
    pub forced_output_format: Option<&'a str>,
    pub encoding_settings: FormatEncodingSettings,
    pub image_operations_program: Vec<Instr>,
}

Fields

tool_name: &'static strmode: InputOutputModeTypeshow_license_text_of: Option<SelectedLicenses>

Display license of this software or its dependencies.

selected_frame: FrameIndexdisable_automatic_color_type_adjustment: bool

Disable color type adjustments on save.

forced_output_format: Option<&'a str>

Format to which an image will be converted (enforced).

encoding_settings: FormatEncodingSettings

Encoding settings for specific output formats.

image_operations_program: Vec<Instr>

If a user wants to perform image operations on input image, they will need to provide the image operation commands. THe value set here should be presented as a [naut_image_engine::engine::Program]. If no program is present, an empty vec should be provided.

Trait Implementations

impl<'a> Clone for Config<'a>[src]

impl<'a> Debug for Config<'a>[src]

impl<'_> Default for Config<'_>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Config<'a>[src]

impl<'a> Send for Config<'a>[src]

impl<'a> Sync for Config<'a>[src]

impl<'a> Unpin for Config<'a>[src]

impl<'a> UnwindSafe for Config<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.