[][src]Struct dezoomify_rs::Arguments

pub struct Arguments {
    pub input_uri: Option<String>,
    pub outfile: Option<PathBuf>,
    pub largest: bool,
    pub parallelism: usize,
    pub retries: usize,
    pub retry_delay: Duration,
    pub headers: Vec<(String, String)>,
    pub max_idle_per_host: usize,
    pub accept_invalid_certs: bool,
    pub timeout: Duration,
    pub connect_timeout: Duration,
    pub logging: String,
    // some fields omitted
}

Fields

input_uri: Option<String>

Input URL or local file name

outfile: Option<PathBuf>

File to which the resulting image should be saved

largest: bool

If several zoom levels are available, then select the largest one

parallelism: usize

Degree of parallelism to use. At most this number of tiles will be downloaded at the same time.

retries: usize

Number of new attempts to make when a tile load fails before giving up. Setting this to 0 is useful to speed up the generic dezoomer, which relies on failed tile loads to detect the dimensions of the image. On the contrary, if a server is not reliable, set this value to a higher number.

retry_delay: Duration

Amount of time to wait before retrying a request that failed

headers: Vec<(String, String)>

Sets an HTTP header to use on requests. This option can be repeated in order to set multiple headers. You can use -H "Referer: URL" where URL is the URL of the website's viewer page in order to let the site think you come from the legitimate viewer.

max_idle_per_host: usize

Maximum number of idle connections per host allowed at the same time

accept_invalid_certs: bool

Whether to accept connecting to insecure HTTPS servers

timeout: Duration

Maximum time between the beginning of a request and the end of a response before the request should be interrupted and considered failed

connect_timeout: Duration

Time after which we should give up when trying to connect to a server

logging: String

Level of logging verbosity. Set it to "debug" to get all logging messages.

Methods

impl Arguments[src]

pub fn choose_input_uri(&self) -> String[src]

pub fn find_dezoomer(&self) -> Result<Box<dyn Dezoomer>, ZoomError>[src]

pub fn best_size<I: Iterator<Item = Vec2d>>(&self, sizes: I) -> Option<Vec2d>[src]

pub fn headers(&self) -> impl Iterator<Item = (&String, &String)>[src]

Trait Implementations

impl Debug for Arguments[src]

impl Default for Arguments[src]

impl StructOpt for Arguments[src]

impl StructOptInternal for Arguments[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,