[−][src]Struct ucare::file::CopyParams
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: StringSource 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]
fn eq(&self, other: &CopyParams) -> bool[src]
fn ne(&self, other: &CopyParams) -> bool[src]
impl Serialize for CopyParams[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for CopyParams[src]
Auto Trait Implementations
impl RefUnwindSafe for CopyParams
impl Send for CopyParams
impl Sync for CopyParams
impl Unpin for CopyParams
impl UnwindSafe for CopyParams
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,