Struct object_store::GetOptions
source · pub struct GetOptions {
pub if_match: Option<String>,
pub if_none_match: Option<String>,
pub if_modified_since: Option<DateTime<Utc>>,
pub if_unmodified_since: Option<DateTime<Utc>>,
pub range: Option<GetRange>,
pub version: Option<String>,
pub head: bool,
}
Expand description
Options for a get request, such as range
Fields§
§if_match: Option<String>
Request will succeed if the ObjectMeta::e_tag
matches
otherwise returning Error::Precondition
See https://datatracker.ietf.org/doc/html/rfc9110#name-if-match
Examples:
If-Match: "xyzzy"
If-Match: "xyzzy", "r2d2xxxx", "c3piozzzz"
If-Match: *
if_none_match: Option<String>
Request will succeed if the ObjectMeta::e_tag
does not match
otherwise returning Error::NotModified
See https://datatracker.ietf.org/doc/html/rfc9110#section-13.1.2
Examples:
If-None-Match: "xyzzy"
If-None-Match: "xyzzy", "r2d2xxxx", "c3piozzzz"
If-None-Match: *
if_modified_since: Option<DateTime<Utc>>
Request will succeed if the object has been modified since
https://datatracker.ietf.org/doc/html/rfc9110#section-13.1.3
if_unmodified_since: Option<DateTime<Utc>>
Request will succeed if the object has not been modified since
otherwise returning Error::Precondition
Some stores, such as S3, will only return NotModified
for exact
timestamp matches, instead of for any timestamp greater than or equal.
https://datatracker.ietf.org/doc/html/rfc9110#section-13.1.4
range: Option<GetRange>
Request transfer of only the specified range of bytes
otherwise returning Error::NotModified
version: Option<String>
Request a particular object version
head: bool
Request transfer of no content
Trait Implementations§
source§impl Debug for GetOptions
impl Debug for GetOptions
source§impl Default for GetOptions
impl Default for GetOptions
source§fn default() -> GetOptions
fn default() -> GetOptions
Auto Trait Implementations§
impl Freeze for GetOptions
impl RefUnwindSafe for GetOptions
impl Send for GetOptions
impl Sync for GetOptions
impl Unpin for GetOptions
impl UnwindSafe for GetOptions
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more