pub struct ObjectMetadata {Show 19 fields
pub bucket: Option<String>,
pub name: Option<String>,
pub full_path: Option<String>,
pub generation: Option<String>,
pub metageneration: Option<String>,
pub size: Option<u64>,
pub time_created: Option<String>,
pub updated: Option<String>,
pub content_type: Option<String>,
pub cache_control: Option<String>,
pub content_disposition: Option<String>,
pub content_language: Option<String>,
pub content_encoding: Option<String>,
pub md5_hash: Option<String>,
pub crc32c: Option<String>,
pub etag: Option<String>,
pub custom_metadata: Option<BTreeMap<String, String>>,
pub download_tokens: Option<Vec<String>>,
pub raw: Value,
}Fields§
§bucket: Option<String>§name: Option<String>§full_path: Option<String>§generation: Option<String>§metageneration: Option<String>§size: Option<u64>§time_created: Option<String>§updated: Option<String>§content_type: Option<String>§cache_control: Option<String>§content_disposition: Option<String>§content_language: Option<String>§content_encoding: Option<String>§md5_hash: Option<String>§crc32c: Option<String>§etag: Option<String>§custom_metadata: Option<BTreeMap<String, String>>§download_tokens: Option<Vec<String>>§raw: ValueImplementations§
Source§impl ObjectMetadata
impl ObjectMetadata
pub fn from_value(value: Value) -> Self
pub fn raw(&self) -> &Value
pub fn size_bytes(&self) -> Option<u64>
pub fn download_tokens(&self) -> Option<&[String]>
Trait Implementations§
Source§impl Clone for ObjectMetadata
impl Clone for ObjectMetadata
Source§fn clone(&self) -> ObjectMetadata
fn clone(&self) -> ObjectMetadata
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 ObjectMetadata
impl Debug for ObjectMetadata
Source§impl Default for ObjectMetadata
impl Default for ObjectMetadata
Source§fn default() -> ObjectMetadata
fn default() -> ObjectMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ObjectMetadata
impl<'de> Deserialize<'de> for ObjectMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ObjectMetadata
impl RefUnwindSafe for ObjectMetadata
impl Send for ObjectMetadata
impl Sync for ObjectMetadata
impl Unpin for ObjectMetadata
impl UnwindSafe for ObjectMetadata
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