Skip to main content

ObjectMeta

Struct ObjectMeta 

Source
pub struct ObjectMeta {
Show 26 fields pub key: String, pub content_type: String, pub etag: String, pub size: u64, pub last_modified: DateTime<Utc>, pub metadata: BTreeMap<String, String>, pub tags: BTreeMap<String, String>, pub storage_class: String, pub acl_grants: Vec<AclGrantSnapshot>, pub acl_owner_id: Option<String>, pub parts_count: Option<u32>, pub part_sizes: Option<Vec<(u32, u64)>>, pub sse_algorithm: Option<String>, pub sse_kms_key_id: Option<String>, pub bucket_key_enabled: Option<bool>, pub version_id: Option<String>, pub is_delete_marker: bool, pub restore_ongoing: Option<bool>, pub restore_expiry: Option<String>, pub checksum_algorithm: Option<String>, pub checksum_value: Option<String>, pub lock_mode: Option<String>, pub lock_retain_until: Option<DateTime<Utc>>, pub lock_legal_hold: Option<String>, pub content_encoding: Option<String>, pub website_redirect_location: Option<String>,
}

Fields§

§key: String§content_type: String§etag: String§size: u64§last_modified: DateTime<Utc>§metadata: BTreeMap<String, String>§tags: BTreeMap<String, String>§storage_class: String§acl_grants: Vec<AclGrantSnapshot>§acl_owner_id: Option<String>§parts_count: Option<u32>§part_sizes: Option<Vec<(u32, u64)>>§sse_algorithm: Option<String>§sse_kms_key_id: Option<String>§bucket_key_enabled: Option<bool>§version_id: Option<String>§is_delete_marker: bool§restore_ongoing: Option<bool>§restore_expiry: Option<String>§checksum_algorithm: Option<String>§checksum_value: Option<String>§lock_mode: Option<String>§lock_retain_until: Option<DateTime<Utc>>§lock_legal_hold: Option<String>§content_encoding: Option<String>§website_redirect_location: Option<String>

Trait Implementations§

Source§

impl Clone for ObjectMeta

Source§

fn clone(&self) -> ObjectMeta

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ObjectMeta

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ObjectMeta

Source§

fn default() -> ObjectMeta

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ObjectMeta

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ObjectMeta

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.