pub struct ComposeSourceOptions {
pub version: Option<String>,
pub if_match: Option<String>,
pub if_not_changed: Option<Metadata>,
}Expand description
Options for one complete source object in a composition.
These options select or constrain the source object. They do not apply to the destination object.
Fields§
§version: Option<String>Compose this version of the source object.
This selects which stored version the composition reads; it is not a condition on the destination object.
Check crate::Capability::compose_with_source_version before using
this option.
if_match: Option<String>Compose only when the selected source has this exact ETag.
The operation returns crate::ErrorKind::Unsupported when the
service does not advertise
crate::Capability::compose_with_source_if_match.
if_not_changed: Option<Metadata>Compose only when the selected source retains this metadata identity.
OpenDAL selects the metadata version when the service supports source
versions. Otherwise it requires the ETag when possible. The operation
returns crate::ErrorKind::Unsupported when the service does not
support the derived source option, and
crate::ErrorKind::ConfigInvalid when the metadata contains neither
identity.
Trait Implementations§
Source§impl Clone for ComposeSourceOptions
impl Clone for ComposeSourceOptions
Source§fn clone(&self) -> ComposeSourceOptions
fn clone(&self) -> ComposeSourceOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more