pub struct UploadOptions {
pub content_type: Option<String>,
pub metadata: HashMap<String, String>,
pub cache_control: Option<String>,
pub content_disposition: Option<String>,
pub overwrite: bool,
}Expand description
File upload options
Fields§
§content_type: Option<String>Content type override
metadata: HashMap<String, String>Custom metadata
cache_control: Option<String>Cache control headers
content_disposition: Option<String>Content disposition
overwrite: boolWhether to overwrite existing file
Implementations§
Source§impl UploadOptions
impl UploadOptions
Sourcepub fn content_type(self, content_type: String) -> Self
pub fn content_type(self, content_type: String) -> Self
Set content type
Sourcepub fn cache_control(self, cache_control: String) -> Self
pub fn cache_control(self, cache_control: String) -> Self
Set cache control
Sourcepub fn content_disposition(self, content_disposition: String) -> Self
pub fn content_disposition(self, content_disposition: String) -> Self
Set content disposition
Trait Implementations§
Source§impl Clone for UploadOptions
impl Clone for UploadOptions
Source§fn clone(&self) -> UploadOptions
fn clone(&self) -> UploadOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UploadOptions
impl Debug for UploadOptions
Auto Trait Implementations§
impl Freeze for UploadOptions
impl RefUnwindSafe for UploadOptions
impl Send for UploadOptions
impl Sync for UploadOptions
impl Unpin for UploadOptions
impl UnwindSafe for UploadOptions
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