#[non_exhaustive]pub struct HeadObjectParams {
pub checksum_mode: Option<ChecksumMode>,
}Expand description
Parameters to a head_object request
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.checksum_mode: Option<ChecksumMode>Enable to retrieve checksum as part of the HeadObject request
Implementations§
Source§impl HeadObjectParams
impl HeadObjectParams
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a default HeadObjectParams.
Sourcepub fn checksum_mode(self, value: Option<ChecksumMode>) -> Self
pub fn checksum_mode(self, value: Option<ChecksumMode>) -> Self
Set option to retrieve checksum as part of the HeadObject request
Trait Implementations§
Source§impl Clone for HeadObjectParams
impl Clone for HeadObjectParams
Source§fn clone(&self) -> HeadObjectParams
fn clone(&self) -> HeadObjectParams
Returns a copy 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 HeadObjectParams
impl Debug for HeadObjectParams
Source§impl Default for HeadObjectParams
impl Default for HeadObjectParams
Source§fn default() -> HeadObjectParams
fn default() -> HeadObjectParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HeadObjectParams
impl RefUnwindSafe for HeadObjectParams
impl Send for HeadObjectParams
impl Sync for HeadObjectParams
impl Unpin for HeadObjectParams
impl UnwindSafe for HeadObjectParams
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