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
Create a new OpRead with range.
sourcepub fn range(&self) -> BytesRange
pub fn range(&self) -> BytesRange
Get range from OpRead.
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 send 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 send 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 send 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 send 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
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for OpRead
impl Send for OpRead
impl Sync for OpRead
impl Unpin for OpRead
impl UnwindSafe for OpRead
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