#[non_exhaustive]pub struct PutOptions {
pub content_disposition: Option<String>,
pub cache_control: Option<String>,
pub content_type: Option<String>,
pub acl: Option<Acl>,
}Expand description
Options for Storage::put_with() and
Storage::put_from_url_with().
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.content_disposition: Option<String>Sets the Content-Disposition header (e.g. "attachment").
cache_control: Option<String>Sets the Cache-Control header (e.g. "max-age=31536000").
content_type: Option<String>Overrides the content type from PutInput. If None, the PutInput.content_type is used.
acl: Option<Acl>Sets the S3 x-amz-acl header. If None, the bucket default applies.
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