[][src]Struct ucare::upload::FileParams

pub struct FileParams {
    pub path: String,
    pub name: String,
    pub to_store: Option<ToStore>,
}

Holds all possible params for the file upload

Fields

path: String

Path of the file to upload.

It must be smaller than 100MB. An attempt of reading a larger file raises a 413 error with the respective description. If you want to upload larger files, please use multipart upload API methods.

name: String

Uploaded file name

to_store: Option<ToStore>

File storing behaviour.

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.