Struct worker::Conditional
source · pub struct Conditional {
pub etag_matches: Option<String>,
pub etag_does_not_match: Option<String>,
pub uploaded_before: Option<Date>,
pub uploaded_after: Option<Date>,
}
Expand description
You can pass an Conditional object to GetOptionsBuilder. If the condition check fails, the body will not be returned. This will make get have lower latency.
For more information about conditional requests, refer to RFC 7232.
Fields§
§etag_matches: Option<String>
Performs the operation if the object’s etag matches the given string.
etag_does_not_match: Option<String>
Performs the operation if the object’s etag does not match the given string.
uploaded_before: Option<Date>
Performs the operation if the object was uploaded before the given date.
uploaded_after: Option<Date>
Performs the operation if the object was uploaded after the given date.
Trait Implementations§
source§impl Clone for Conditional
impl Clone for Conditional
source§fn clone(&self) -> Conditional
fn clone(&self) -> Conditional
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 Conditional
impl Debug for Conditional
source§impl Default for Conditional
impl Default for Conditional
source§fn default() -> Conditional
fn default() -> Conditional
Returns the “default value” for a type. Read more
source§impl From<Conditional> for Object
impl From<Conditional> for Object
source§fn from(val: Conditional) -> Self
fn from(val: Conditional) -> Self
Converts to this type from the input type.
source§impl PartialEq for Conditional
impl PartialEq for Conditional
source§fn eq(&self, other: &Conditional) -> bool
fn eq(&self, other: &Conditional) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Conditional
impl StructuralPartialEq for Conditional
Auto Trait Implementations§
impl Freeze for Conditional
impl RefUnwindSafe for Conditional
impl !Send for Conditional
impl !Sync for Conditional
impl Unpin for Conditional
impl UnwindSafe for Conditional
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