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

pub struct ConfigBuilder<'a> { /* fields omitted */ }

Builder for [crate::config::Config]. Should be used with the Default implementation of [crate::config::Config]. If the default trait is not used with this builder, some settings may be inaccessible. For example, output_path can be set to some value, but not unset.

Builder is consuming.

Implementations

impl<'a> ConfigBuilder<'a>[src]

pub fn new() -> Self[src]

pub fn mode(self, mode: InputOutputModeType) -> ConfigBuilder<'a>[src]

pub fn show_license_text_of(
    self,
    selection: SelectedLicenses
) -> ConfigBuilder<'a>
[src]

pub fn select_frame(self, frame: FrameIndex) -> ConfigBuilder<'a>[src]

pub fn forced_output_format(self, format: &'a str) -> ConfigBuilder<'a>[src]

pub fn disable_automatic_color_type_adjustment(
    self,
    toggle: bool
) -> ConfigBuilder<'a>
[src]

pub fn jpeg_quality(self, quality: u8) -> ConfigBuilder<'a>[src]

pub fn pnm_format_type(self, use_ascii: bool) -> ConfigBuilder<'a>[src]

pub fn image_output_format_decider_fallback(
    self,
    enable_fallback: bool
) -> ConfigBuilder<'a>
[src]

pub fn image_operations_program(self, program: Vec<Instr>) -> ConfigBuilder<'a>[src]

pub fn build(self) -> Config<'a>[src]

Trait Implementations

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

impl<'a> Default for ConfigBuilder<'a>[src]

Auto Trait Implementations

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

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

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

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

impl<'a> UnwindSafe for ConfigBuilder<'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, 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.