pub struct ObjectWriteOptions {
pub attributes: Option<ObjectAttributes>,
pub tags: Option<HashMap<String, String>>,
pub storage_class: Option<String>,
pub checksum: Option<ChecksumRequest>,
pub encryption: Option<ObjectWriteEncryption>,
pub retention: Option<ObjectRetention>,
pub legal_hold: Option<LegalHoldStatus>,
}Expand description
Complete destination options for an object write or copy.
Fields§
§attributes: Option<ObjectAttributes>Attributes to store. Some(Default::default()) represents an explicit empty replacement.
Tags to store. Some(HashMap::new()) represents an explicit empty replacement.
storage_class: Option<String>Requested destination storage class.
checksum: Option<ChecksumRequest>Checksum supplied or selected for the write.
encryption: Option<ObjectWriteEncryption>Destination encryption policy.
retention: Option<ObjectRetention>Retention applied atomically with object creation.
legal_hold: Option<LegalHoldStatus>Legal-hold state applied atomically with object creation.
Implementations§
Source§impl ObjectWriteOptions
impl ObjectWriteOptions
Sourcepub fn legacy_put_arguments(
&self,
) -> Result<(Option<&str>, Option<&ObjectEncryptionRequest>)>
pub fn legacy_put_arguments( &self, ) -> Result<(Option<&str>, Option<&ObjectEncryptionRequest>)>
Translate the subset supported by the original ObjectStore put API.
Backends use this to preserve compatibility without silently dropping advanced fields.
Trait Implementations§
Source§impl Clone for ObjectWriteOptions
impl Clone for ObjectWriteOptions
Source§fn clone(&self) -> ObjectWriteOptions
fn clone(&self) -> ObjectWriteOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectWriteOptions
impl Debug for ObjectWriteOptions
Source§impl Default for ObjectWriteOptions
impl Default for ObjectWriteOptions
Source§fn default() -> ObjectWriteOptions
fn default() -> ObjectWriteOptions
Returns the “default value” for a type. Read more
impl Eq for ObjectWriteOptions
Source§impl PartialEq for ObjectWriteOptions
impl PartialEq for ObjectWriteOptions
impl StructuralPartialEq for ObjectWriteOptions
Auto Trait Implementations§
impl Freeze for ObjectWriteOptions
impl RefUnwindSafe for ObjectWriteOptions
impl Send for ObjectWriteOptions
impl Sync for ObjectWriteOptions
impl Unpin for ObjectWriteOptions
impl UnsafeUnpin for ObjectWriteOptions
impl UnwindSafe for ObjectWriteOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more