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 moreSource§impl Debug for ComposeSourceOptions
impl Debug for ComposeSourceOptions
Source§impl Default for ComposeSourceOptions
impl Default for ComposeSourceOptions
Source§fn default() -> ComposeSourceOptions
fn default() -> ComposeSourceOptions
impl Eq for ComposeSourceOptions
Source§impl PartialEq for ComposeSourceOptions
impl PartialEq for ComposeSourceOptions
impl StructuralPartialEq for ComposeSourceOptions
Auto Trait Implementations§
impl Freeze for ComposeSourceOptions
impl RefUnwindSafe for ComposeSourceOptions
impl Send for ComposeSourceOptions
impl Sync for ComposeSourceOptions
impl Unpin for ComposeSourceOptions
impl UnsafeUnpin for ComposeSourceOptions
impl UnwindSafe for ComposeSourceOptions
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.