pub struct DelObject { /* private fields */ }Expand description
Delete the specified object
When deleting, OSS does not check whether the object exists; a valid request always succeeds
If versioning is enabled, the response is meaningful. Please refer to the documentation for delete markers and version IDs
See the Alibaba Cloud documentation for details
Implementations§
Source§impl DelObject
impl DelObject
Sourcepub async fn send(self) -> Result<(), Error>
pub async fn send(self) -> Result<(), Error>
Send the request
The return value is meaningful only when versioning is enabled
- Return value 0: x-oss-delete-marker flag
- Return value 1: Version ID. If no version ID is specified when deleting, this is the version ID of the new delete marker; otherwise, it is the specified version ID
Auto Trait Implementations§
impl Freeze for DelObject
impl !RefUnwindSafe for DelObject
impl Send for DelObject
impl Sync for DelObject
impl Unpin for DelObject
impl !UnwindSafe for DelObject
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