pub struct ObjectAttributes {
pub content_type: Option<String>,
pub cache_control: Option<String>,
pub content_disposition: Option<String>,
pub content_encoding: Option<String>,
pub content_language: Option<String>,
pub expires: Option<Timestamp>,
pub user_metadata: HashMap<String, String>,
}Expand description
Standard HTTP object attributes and user-defined metadata.
Fields§
§content_type: Option<String>Media type stored with the object.
cache_control: Option<String>Cache policy stored with the object.
content_disposition: Option<String>Content disposition stored with the object.
content_encoding: Option<String>Content encoding stored with the object.
content_language: Option<String>Content language stored with the object.
expires: Option<Timestamp>Optional expiry timestamp stored with the object.
user_metadata: HashMap<String, String>User-defined metadata without the protocol header prefix.
Implementations§
Trait Implementations§
Source§impl Clone for ObjectAttributes
impl Clone for ObjectAttributes
Source§fn clone(&self) -> ObjectAttributes
fn clone(&self) -> ObjectAttributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ObjectAttributes
impl Debug for ObjectAttributes
Source§impl Default for ObjectAttributes
impl Default for ObjectAttributes
Source§fn default() -> ObjectAttributes
fn default() -> ObjectAttributes
Returns the “default value” for a type. Read more
impl Eq for ObjectAttributes
Source§impl PartialEq for ObjectAttributes
impl PartialEq for ObjectAttributes
impl StructuralPartialEq for ObjectAttributes
Auto Trait Implementations§
impl Freeze for ObjectAttributes
impl RefUnwindSafe for ObjectAttributes
impl Send for ObjectAttributes
impl Sync for ObjectAttributes
impl Unpin for ObjectAttributes
impl UnsafeUnpin for ObjectAttributes
impl UnwindSafe for ObjectAttributes
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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