[][src]Struct ucare::file::CopyParams

pub struct CopyParams {
    pub source: String,
    pub store: Option<ToStore>,
    pub make_public: Option<MakePublic>,
    pub target: Option<String>,
    pub pattern: Option<Pattern>,
}

CopyParams is used when copy original files or their modified versions to default storage. Source files MAY either be stored or just uploaded and MUST NOT be deleted

Fields

source: String

Source is a CDN URL or just ID (UUID) of a file subjected to copy

store: Option<ToStore>

Store parameter only applies to the Uploadcare storage and MUST be either true or false.

make_public: Option<MakePublic>

MakePublic is applicable to custom storage only. MUST be either true or false. True to make copied files available via public links, false to reverse the behavior.

target: Option<String>

Target identifies a custom storage name related to your project. Implies you are copying a file to a specified custom storage. Keep in mind you can have multiple storages associated with a single S3 bucket.

pattern: Option<Pattern>

Pattern is used to specify file names Uploadcare passes to a custom storage. In case the parameter is omitted, we use pattern of your custom storage.

Trait Implementations

impl Debug for CopyParams[src]

impl PartialEq<CopyParams> for CopyParams[src]

impl Serialize for CopyParams[src]

impl StructuralPartialEq for CopyParams[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, 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.