pub struct SetMetadataRequest {
pub cache_control: Option<String>,
pub content_disposition: Option<String>,
pub content_encoding: Option<String>,
pub content_language: Option<String>,
pub content_type: Option<String>,
pub custom_metadata: Option<BTreeMap<String, String>>,
pub md5_hash: Option<String>,
pub crc32c: Option<String>,
}Fields§
§cache_control: Option<String>§content_disposition: Option<String>§content_encoding: Option<String>§content_language: Option<String>§content_type: Option<String>§custom_metadata: Option<BTreeMap<String, String>>§md5_hash: Option<String>§crc32c: Option<String>Implementations§
Source§impl SetMetadataRequest
impl SetMetadataRequest
pub fn new() -> Self
pub fn with_cache_control(self, value: impl Into<String>) -> Self
pub fn with_content_disposition(self, value: impl Into<String>) -> Self
pub fn with_content_encoding(self, value: impl Into<String>) -> Self
pub fn with_content_language(self, value: impl Into<String>) -> Self
pub fn with_content_type(self, value: impl Into<String>) -> Self
pub fn with_md5_hash(self, value: impl Into<String>) -> Self
pub fn with_crc32c(self, value: impl Into<String>) -> Self
pub fn insert_custom_metadata( &mut self, key: impl Into<String>, value: impl Into<String>, )
pub fn custom_metadata(&self) -> Option<&BTreeMap<String, String>>
Trait Implementations§
Source§impl Clone for SetMetadataRequest
impl Clone for SetMetadataRequest
Source§fn clone(&self) -> SetMetadataRequest
fn clone(&self) -> SetMetadataRequest
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 SetMetadataRequest
impl Debug for SetMetadataRequest
Source§impl Default for SetMetadataRequest
impl Default for SetMetadataRequest
Source§fn default() -> SetMetadataRequest
fn default() -> SetMetadataRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetMetadataRequest
impl RefUnwindSafe for SetMetadataRequest
impl Send for SetMetadataRequest
impl Sync for SetMetadataRequest
impl Unpin for SetMetadataRequest
impl UnwindSafe for SetMetadataRequest
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