pub struct OpRead { /* private fields */ }
Expand description
Args for read
operation.
Implementations§
Source§impl OpRead
impl OpRead
Sourcepub fn with_range(self, range: BytesRange) -> Self
pub fn with_range(self, range: BytesRange) -> Self
Set the range of the option
Sourcepub fn range(&self) -> BytesRange
pub fn range(&self) -> BytesRange
Get range from option
Sourcepub fn with_override_content_disposition(
self,
content_disposition: &str,
) -> Self
pub fn with_override_content_disposition( self, content_disposition: &str, ) -> Self
Sets the content-disposition header that should be sent back by the remote read operation.
Sourcepub fn override_content_disposition(&self) -> Option<&str>
pub fn override_content_disposition(&self) -> Option<&str>
Returns the content-disposition header that should be sent back by the remote read operation.
Sourcepub fn with_override_cache_control(self, cache_control: &str) -> Self
pub fn with_override_cache_control(self, cache_control: &str) -> Self
Sets the cache-control header that should be sent back by the remote read operation.
Sourcepub fn override_cache_control(&self) -> Option<&str>
pub fn override_cache_control(&self) -> Option<&str>
Returns the cache-control header that should be sent back by the remote read operation.
Sourcepub fn with_override_content_type(self, content_type: &str) -> Self
pub fn with_override_content_type(self, content_type: &str) -> Self
Sets the content-type header that should be sent back by the remote read operation.
Sourcepub fn override_content_type(&self) -> Option<&str>
pub fn override_content_type(&self) -> Option<&str>
Returns the content-type header that should be sent back by the remote read operation.
Sourcepub fn with_if_match(self, if_match: &str) -> Self
pub fn with_if_match(self, if_match: &str) -> Self
Set the If-Match of the option
Sourcepub fn with_if_none_match(self, if_none_match: &str) -> Self
pub fn with_if_none_match(self, if_none_match: &str) -> Self
Set the If-None-Match of the option
Sourcepub fn if_none_match(&self) -> Option<&str>
pub fn if_none_match(&self) -> Option<&str>
Get If-None-Match from option
Sourcepub fn with_if_modified_since(self, v: DateTime<Utc>) -> Self
pub fn with_if_modified_since(self, v: DateTime<Utc>) -> Self
Set the If-Modified-Since of the option
Sourcepub fn if_modified_since(&self) -> Option<DateTime<Utc>>
pub fn if_modified_since(&self) -> Option<DateTime<Utc>>
Get If-Modified-Since from option
Sourcepub fn with_if_unmodified_since(self, v: DateTime<Utc>) -> Self
pub fn with_if_unmodified_since(self, v: DateTime<Utc>) -> Self
Set the If-Unmodified-Since of the option
Sourcepub fn if_unmodified_since(&self) -> Option<DateTime<Utc>>
pub fn if_unmodified_since(&self) -> Option<DateTime<Utc>>
Get If-Unmodified-Since from option
Sourcepub fn with_version(self, version: &str) -> Self
pub fn with_version(self, version: &str) -> Self
Set the version of the option