Struct worker_plus::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 JsObject
impl From<Conditional> for JsObject
source§fn from(val: Conditional) -> Self
fn from(val: Conditional) -> Self
Converts to this type from the input type.
source§impl PartialEq<Conditional> for Conditional
impl PartialEq<Conditional> 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 ==
.