pub struct ComposeOptions {
pub cache_control: Option<String>,
pub content_type: Option<String>,
pub content_disposition: Option<String>,
pub content_encoding: Option<String>,
pub user_metadata: Option<HashMap<String, String>>,
pub if_match: Option<String>,
pub if_none_match: Option<String>,
pub if_version_match: Option<String>,
pub if_version_not_match: Option<String>,
pub if_not_exists: bool,
pub if_not_changed: Option<Metadata>,
pub concurrent: usize,
}Expand description
Options for composing complete source objects into one destination object.
Metadata fields apply only to the destination. Conditions check the
destination object and follow the matching WriteOptions contracts.
Fields§
§cache_control: Option<String>Sets Cache-Control metadata on the destination object.
content_type: Option<String>Sets Content-Type metadata on the destination object.
content_disposition: Option<String>Sets Content-Disposition metadata on the destination object.
content_encoding: Option<String>Sets Content-Encoding metadata on the destination object.
user_metadata: Option<HashMap<String, String>>Sets user metadata on the destination object.
if_match: Option<String>Compose only when the destination has this exact ETag.
if_none_match: Option<String>Compose only when the destination does not have this ETag.
if_version_match: Option<String>Compose only when the destination has this exact version.
if_version_not_match: Option<String>Compose only when the destination does not have this version.
if_not_exists: boolCompose only when no destination object exists.
if_not_changed: Option<Metadata>Compose only when the destination still has this metadata identity.
OpenDAL derives a version match when the service supports version
conditions and the metadata contains a version. Otherwise it derives
an ETag match when possible. The operation returns
crate::ErrorKind::Unsupported when the service does not support the
derived primitive condition, and crate::ErrorKind::ConfigInvalid
when the metadata contains neither a version nor an ETag.
concurrent: usizeMaximum number of independent backend composition tasks.
The default value is 1. Services that use one atomic request may
ignore values greater than 1.
Trait Implementations§
Source§impl Clone for ComposeOptions
impl Clone for ComposeOptions
Source§fn clone(&self) -> ComposeOptions
fn clone(&self) -> ComposeOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ComposeOptions
impl Debug for ComposeOptions
Source§impl Default for ComposeOptions
impl Default for ComposeOptions
Source§fn default() -> ComposeOptions
fn default() -> ComposeOptions
impl Eq for ComposeOptions
Source§impl PartialEq for ComposeOptions
impl PartialEq for ComposeOptions
impl StructuralPartialEq for ComposeOptions
Auto Trait Implementations§
impl Freeze for ComposeOptions
impl RefUnwindSafe for ComposeOptions
impl Send for ComposeOptions
impl Sync for ComposeOptions
impl Unpin for ComposeOptions
impl UnsafeUnpin for ComposeOptions
impl UnwindSafe for ComposeOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.