pub struct OpWrite { /* private fields */ }
Expand description
Args 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 content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
Get the content type from option
sourcepub fn with_content_type(self, content_type: &str) -> Self
pub fn with_content_type(self, content_type: &str) -> Self
Set the content type of option
sourcepub fn content_disposition(&self) -> Option<&str>
pub fn content_disposition(&self) -> Option<&str>
Get the content disposition from option
sourcepub fn with_content_disposition(self, content_disposition: &str) -> Self
pub fn with_content_disposition(self, content_disposition: &str) -> Self
Set the content disposition of option