pub struct StatOptions {
pub version: Option<String>,
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 override_content_type: Option<String>,
pub override_cache_control: Option<String>,
pub override_content_disposition: Option<String>,
}Expand description
Options for stat operations.
Fields§
§version: Option<String>Set version for this operation.
This options can be used to retrieve the data of a specified version of the given path.
If the version doesn’t exist, an error with kind [ErrorKind::NotFound] will be returned.
if_match: Option<String>Set if_match for this operation.
This option can be used to check if the file’s ETag matches the given ETag.
If file exists and it’s etag doesn’t match, an error with kind [ErrorKind::ConditionNotMatch]
will be returned.
if_none_match: Option<String>Set if_none_match for this operation.
This option can be used to check if the file’s ETag doesn’t match the given ETag.
If file exists and it’s etag match, an error with kind [ErrorKind::ConditionNotMatch]
will be returned.
if_modified_since: Option<DateTime<Utc>>Set if_modified_since for this operation.
This option can be used to check if the file has been modified since the given timestamp.
If file exists and it hasn’t been modified since the specified time, an error with kind
[ErrorKind::ConditionNotMatch] will be returned.
if_unmodified_since: Option<DateTime<Utc>>Set if_unmodified_since for this operation.
This feature can be used to check if the file hasn’t been modified since the given timestamp.
If file exists and it has been modified since the specified time, an error with kind
[ErrorKind::ConditionNotMatch] will be returned.
override_content_type: Option<String>Specify the content-type header that should be sent back by the operation.
This option is only meaningful when used along with presign.
override_cache_control: Option<String>Specify the cache-control header that should be sent back by the operation.
This option is only meaningful when used along with presign.
override_content_disposition: Option<String>Specify the content-disposition header that should be sent back by the operation.
This option is only meaningful when used along with presign.
Trait Implementations§
Source§impl Clone for StatOptions
impl Clone for StatOptions
Source§fn clone(&self) -> StatOptions
fn clone(&self) -> StatOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StatOptions
impl Debug for StatOptions
Source§impl Default for StatOptions
impl Default for StatOptions
Source§fn default() -> StatOptions
fn default() -> StatOptions
Source§impl From<StatOptions> for OpStat
impl From<StatOptions> for OpStat
Source§fn from(value: StatOptions) -> Self
fn from(value: StatOptions) -> Self
Source§impl PartialEq for StatOptions
impl PartialEq for StatOptions
impl Eq for StatOptions
impl StructuralPartialEq for StatOptions
Auto Trait Implementations§
impl Freeze for StatOptions
impl RefUnwindSafe for StatOptions
impl Send for StatOptions
impl Sync for StatOptions
impl Unpin for StatOptions
impl UnwindSafe for StatOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.