pub struct PutOptions {
pub visibility: Visibility,
pub content_type: Option<String>,
pub metadata: Option<HashMap<String, String>>,
}Expand description
Options for storing files.
Fields§
§visibility: VisibilityFile visibility.
content_type: Option<String>Content type override.
metadata: Option<HashMap<String, String>>Custom metadata.
Implementations§
Source§impl PutOptions
impl PutOptions
Sourcepub fn visibility(self, visibility: Visibility) -> Self
pub fn visibility(self, visibility: Visibility) -> Self
Set visibility.
Sourcepub fn content_type(self, content_type: impl Into<String>) -> Self
pub fn content_type(self, content_type: impl Into<String>) -> Self
Set content type.
Trait Implementations§
Source§impl Clone for PutOptions
impl Clone for PutOptions
Source§fn clone(&self) -> PutOptions
fn clone(&self) -> PutOptions
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 PutOptions
impl Debug for PutOptions
Source§impl Default for PutOptions
impl Default for PutOptions
Source§fn default() -> PutOptions
fn default() -> PutOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PutOptions
impl RefUnwindSafe for PutOptions
impl Send for PutOptions
impl Sync for PutOptions
impl Unpin for PutOptions
impl UnsafeUnpin for PutOptions
impl UnwindSafe for PutOptions
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