#[non_exhaustive]pub struct GetObjectParams {
pub range: Option<Range<u64>>,
pub if_match: Option<ETag>,
pub checksum_mode: Option<ChecksumMode>,
}Expand description
Parameters to a get_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.range: Option<Range<u64>>§if_match: Option<ETag>§checksum_mode: Option<ChecksumMode>Implementations§
Source§impl GetObjectParams
impl GetObjectParams
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a default GetObjectParams.
Sourcepub fn range(self, value: Option<Range<u64>>) -> Self
pub fn range(self, value: Option<Range<u64>>) -> Self
Set the range retrieved by the GetObject request
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 GetObject request
Trait Implementations§
Source§impl Clone for GetObjectParams
impl Clone for GetObjectParams
Source§fn clone(&self) -> GetObjectParams
fn clone(&self) -> GetObjectParams
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 GetObjectParams
impl Debug for GetObjectParams
Source§impl Default for GetObjectParams
impl Default for GetObjectParams
Source§fn default() -> GetObjectParams
fn default() -> GetObjectParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetObjectParams
impl RefUnwindSafe for GetObjectParams
impl Send for GetObjectParams
impl Sync for GetObjectParams
impl Unpin for GetObjectParams
impl UnwindSafe for GetObjectParams
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