pub struct HeadObject { /* private fields */ }Expand description
Retrieve the object’s metadata
See the Alibaba Cloud documentation for details
Implementations§
Source§impl HeadObject
impl HeadObject
Sourcepub fn set_if_modified_since(self, if_modified_since: OffsetDateTime) -> Self
pub fn set_if_modified_since(self, if_modified_since: OffsetDateTime) -> Self
If the provided time is earlier than the actual modification time, the request succeeds
Sourcepub fn set_if_unmodified_since(
self,
if_unmodified_since: OffsetDateTime,
) -> Self
pub fn set_if_unmodified_since( self, if_unmodified_since: OffsetDateTime, ) -> Self
Require the specified time to be equal to or later than the object’s last modification time
Sourcepub fn set_if_match(self, if_match: impl ToString) -> Self
pub fn set_if_match(self, if_match: impl ToString) -> Self
Require the object’s ETag to match the provided ETag
The ETag verifies whether the data has changed and can be used to check data integrity
Sourcepub fn set_if_none_match(self, if_none_match: impl ToString) -> Self
pub fn set_if_none_match(self, if_none_match: impl ToString) -> Self
Require the object’s ETag to differ from the provided ETag
Auto Trait Implementations§
impl Freeze for HeadObject
impl !RefUnwindSafe for HeadObject
impl Send for HeadObject
impl Sync for HeadObject
impl Unpin for HeadObject
impl !UnwindSafe for HeadObject
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