Struct libcoreinst::cmdline::DownloadConfig[][src]

pub struct DownloadConfig {
    pub stream: String,
    pub architecture: DefaultedString<Architecture>,
    pub platform: String,
    pub format: String,
    pub image_url: Option<Url>,
    pub directory: String,
    pub decompress: bool,
    pub insecure: bool,
    pub stream_base_url: Option<Url>,
    pub fetch_retries: FetchRetries,
}

Fields

stream: String

Fedora CoreOS stream

architecture: DefaultedString<Architecture>

Target CPU architecture

platform: String

Fedora CoreOS platform name

format: String

Image format

image_url: Option<Url>

Manually specify the image URL

directory: String

Destination directory

decompress: bool

Decompress image and don’t save signature

insecure: bool

Skip signature verification

stream_base_url: Option<Url>

Base URL for Fedora CoreOS stream metadata

fetch_retries: FetchRetries

Fetch retries, or “infinite”

Trait Implementations

Formats the value using the given formatter. Read more

Returns clap::App corresponding to the struct.

Builds the struct from clap::ArgMatches. It’s guaranteed to succeed if matches originates from an App generated by StructOpt::clap called on the same type, otherwise it must panic. Read more

Builds the struct from the command line arguments (std::env::args_os). Calls clap::Error::exit on failure, printing the error message and aborting the program. Read more

Builds the struct from the command line arguments (std::env::args_os). Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program, so calling .exit is up to you. Read more

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.