pub struct CopyParams {
pub source: String,
pub store: Option<ToStore>,
pub make_public: Option<MakePublic>,
pub target: Option<String>,
pub pattern: Option<Pattern>,
}
Expand description
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§
Source§impl Debug for CopyParams
impl Debug for CopyParams
Source§impl PartialEq for CopyParams
impl PartialEq for CopyParams
Source§impl Serialize for CopyParams
impl Serialize for CopyParams
impl StructuralPartialEq for CopyParams
Auto Trait Implementations§
impl Freeze for CopyParams
impl RefUnwindSafe for CopyParams
impl Send for CopyParams
impl Sync for CopyParams
impl Unpin for CopyParams
impl UnwindSafe for CopyParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more