Struct worker::GetOptionsBuilder
source · pub struct GetOptionsBuilder<'bucket> { /* private fields */ }
Expand description
Options for configuring the get operation.
Implementations§
source§impl<'bucket> GetOptionsBuilder<'bucket>
impl<'bucket> GetOptionsBuilder<'bucket>
sourcepub fn only_if(self, only_if: Conditional) -> Self
pub fn only_if(self, only_if: Conditional) -> Self
Specifies that the object should only be returned given satisfaction of certain conditions in the [R2Conditional]. Refer to Conditional operations.
sourcepub fn range(self, range: Range) -> Self
pub fn range(self, range: Range) -> Self
Specifies that only a specific length (from an optional offset) or suffix of bytes from the object should be returned. Refer to Ranged reads.
Auto Trait Implementations§
impl<'bucket> RefUnwindSafe for GetOptionsBuilder<'bucket>
impl<'bucket> !Send for GetOptionsBuilder<'bucket>
impl<'bucket> !Sync for GetOptionsBuilder<'bucket>
impl<'bucket> Unpin for GetOptionsBuilder<'bucket>
impl<'bucket> UnwindSafe for GetOptionsBuilder<'bucket>
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