pub struct OpWrite { /* private fields */ }Expand description
Arguments for write operation.
Implementations§
Source§impl OpWrite
impl OpWrite
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new OpWrite.
If input path is not a file path, an error will be returned.
Sourcepub fn from_options(
capability: &Capability,
options: WriteOptions,
) -> Result<(Self, OpWriter)>
pub fn from_options( capability: &Capability, options: WriteOptions, ) -> Result<(Self, OpWriter)>
Sourcepub fn append(&self) -> bool
pub fn append(&self) -> bool
Get the append from op.
The append is the flag to indicate that this write operation is an append operation.
Sourcepub fn content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
Get the content type from option
Sourcepub fn content_disposition(&self) -> Option<&str>
pub fn content_disposition(&self) -> Option<&str>
Get the content disposition from option
Sourcepub fn content_encoding(&self) -> Option<&str>
pub fn content_encoding(&self) -> Option<&str>
Get the content encoding from option
Sourcepub fn cache_control(&self) -> Option<&str>
pub fn cache_control(&self) -> Option<&str>
Get the cache control from option
Sourcepub fn concurrent(&self) -> usize
pub fn concurrent(&self) -> usize
Get the concurrent.
Sourcepub fn if_none_match(&self) -> Option<&str>
pub fn if_none_match(&self) -> Option<&str>
Get If-None-Match from option
Sourcepub fn if_version_match(&self) -> Option<&str>
pub fn if_version_match(&self) -> Option<&str>
Get the version match condition.
Sourcepub fn if_version_not_match(&self) -> Option<&str>
pub fn if_version_not_match(&self) -> Option<&str>
Get the version non-match condition.
Sourcepub fn if_not_exists(&self) -> bool
pub fn if_not_exists(&self) -> bool
Get If-Not-Exist from option
Sourcepub fn is_conditional(&self) -> bool
pub fn is_conditional(&self) -> bool
Returns whether at least one conditional option is set.
Value-bearing options are set when present. Boolean options are set only
when their value is true.
Sourcepub fn user_metadata(&self) -> Option<UserMetadata<'_>>
pub fn user_metadata(&self) -> Option<UserMetadata<'_>>
Get the user defined metadata from the op
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpWrite
impl RefUnwindSafe for OpWrite
impl Send for OpWrite
impl Sync for OpWrite
impl Unpin for OpWrite
impl UnsafeUnpin for OpWrite
impl UnwindSafe for OpWrite
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