Struct firebase_wasm::storage::UploadMetadataOptions
source · pub struct UploadMetadataOptions {
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 md5_hash: Option<String>,
/* private fields */
}
Fields
cache_control: Option<String>
content_disposition: Option<String>
content_encoding: Option<String>
content_language: Option<String>
content_type: Option<String>
md5_hash: Option<String>
Implementations
sourceimpl UploadMetadataOptions
impl UploadMetadataOptions
sourcepub fn builder() -> UploadMetadataOptionsBuilder<((), (), (), (), (), ())>
pub fn builder() -> UploadMetadataOptionsBuilder<((), (), (), (), (), ())>
Create a builder for building UploadMetadataOptions
.
On the builder, call .cache_control(...)
(optional), .content_disposition(...)
(optional), .content_encoding(...)
(optional), .content_language(...)
(optional), .content_type(...)
(optional), .md5_hash(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of UploadMetadataOptions
.
sourceimpl UploadMetadataOptions
impl UploadMetadataOptions
pub fn add_custom_metadata(self, key: impl ToString, value: impl ToString) -> Self
Trait Implementations
sourceimpl Clone for UploadMetadataOptions
impl Clone for UploadMetadataOptions
sourcefn clone(&self) -> UploadMetadataOptions
fn clone(&self) -> UploadMetadataOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UploadMetadataOptions
impl Debug for UploadMetadataOptions
sourceimpl Serialize for UploadMetadataOptions
impl Serialize for UploadMetadataOptions
Auto Trait Implementations
impl RefUnwindSafe for UploadMetadataOptions
impl Send for UploadMetadataOptions
impl Sync for UploadMetadataOptions
impl Unpin for UploadMetadataOptions
impl UnwindSafe for UploadMetadataOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more