pub struct ObjectMetadata {Show 17 fields
pub name: Option<String>,
pub bucket: Option<String>,
pub generation: Option<String>,
pub metageneration: Option<String>,
pub content_type: Option<String>,
pub time_created: Option<String>,
pub updated: Option<String>,
pub storage_class: Option<String>,
pub size: Option<String>,
pub md5_hash: Option<String>,
pub media_link: Option<String>,
pub content_encoding: Option<String>,
pub content_disposition: Option<String>,
pub cache_control: Option<String>,
pub metadata: Option<HashMap<String, String>>,
pub crc32c: Option<String>,
pub etag: Option<String>,
}Expand description
Metadata for a Google Cloud Storage object.
Fields§
§name: Option<String>The name of the object.
bucket: Option<String>The bucket containing the object.
generation: Option<String>The content generation of this object. Used for object versioning.
metageneration: Option<String>The version of the metadata for this object at this generation.
content_type: Option<String>Content-Type of the object data.
time_created: Option<String>The creation time of the object.
updated: Option<String>The modification time of the object metadata.
storage_class: Option<String>Storage class of the object.
size: Option<String>Content-Length of the data in bytes.
md5_hash: Option<String>MD5 hash of the data; encoded using base64.
media_link: Option<String>Media download link.
content_encoding: Option<String>Content-Encoding of the object data.
content_disposition: Option<String>Content-Disposition of the object data.
cache_control: Option<String>Cache-Control directive for the object data.
metadata: Option<HashMap<String, String>>User-provided metadata, in key/value pairs.
crc32c: Option<String>CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
etag: Option<String>HTTP 1.1 Entity tag for the object.
Trait Implementations§
Source§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