[][src]Struct ucare::upload::FromUrlParams

pub struct FromUrlParams {
    pub source_url: String,
    pub to_store: Option<ToStore>,
    pub filename: Option<String>,
    pub check_url_duplicates: Option<UrlDuplicates>,
    pub save_url_duplicates: Option<UrlDuplicates>,
}

Parameters for upload from public URL link

Fields

source_url: String

File URL, which should be a public HTTP or HTTPS link

to_store: Option<ToStore>

File storing behaviour.

filename: Option<String>

The name for a file uploaded from URL. If not defined, the filename is obtained from either response headers or a source URL

check_url_duplicates: Option<UrlDuplicates>

Specify to run the duplicate check and provide the immediate-download behavior

save_url_duplicates: Option<UrlDuplicates>

Specify to run The save/update URL behavior. The parameter can be used if you believe a source_url will be used more than once. If you don’t explicitly defined, it is by default set to the value of check_url_duplicates.

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, 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.