#[non_exhaustive]pub struct DeleteObject {
pub permanent_object_deletion_enabled: bool,
/* private fields */
}Expand description
Describes options to delete an object.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.permanent_object_deletion_enabled: boolRequired. Controls deletion behavior when versioning is enabled for the object’s bucket. If true both live and noncurrent objects will be permanently deleted. Otherwise live objects in versioned buckets will become noncurrent and objects that were already noncurrent will be skipped. This setting doesn’t have any impact on the Soft Delete feature. All objects deleted by this service can be be restored for the duration of the Soft Delete retention duration if enabled. If enabled and the manifest doesn’t specify an object’s generation, a GetObjectMetadata call (a Class B operation) will be made to determine the live object generation.
Implementations§
Source§impl DeleteObject
impl DeleteObject
pub fn new() -> Self
Sourcepub fn set_permanent_object_deletion_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_permanent_object_deletion_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of permanent_object_deletion_enabled.
§Example
ⓘ
let x = DeleteObject::new().set_permanent_object_deletion_enabled(true);Trait Implementations§
Source§impl Clone for DeleteObject
impl Clone for DeleteObject
Source§fn clone(&self) -> DeleteObject
fn clone(&self) -> DeleteObject
Returns a duplicate of the value. Read more
1.0.0 · 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 DeleteObject
impl Debug for DeleteObject
Source§impl Default for DeleteObject
impl Default for DeleteObject
Source§fn default() -> DeleteObject
fn default() -> DeleteObject
Returns the “default value” for a type. Read more
Source§impl Message for DeleteObject
impl Message for DeleteObject
Source§impl PartialEq for DeleteObject
impl PartialEq for DeleteObject
impl StructuralPartialEq for DeleteObject
Auto Trait Implementations§
impl Freeze for DeleteObject
impl RefUnwindSafe for DeleteObject
impl Send for DeleteObject
impl Sync for DeleteObject
impl Unpin for DeleteObject
impl UnwindSafe for DeleteObject
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
Mutably borrows from an owned value. Read more