[][src]Struct tame_gcs::objects::ObjectMetadata

pub struct ObjectMetadata {
    pub kind: Option<String>,
    pub id: Option<String>,
    pub self_link: Option<String>,
    pub name: Option<String>,
    pub bucket: Option<String>,
    pub generation: Option<i64>,
    pub metageneration: Option<i64>,
    pub content_type: Option<String>,
    pub time_created: Option<DateTime<Utc>>,
    pub updated: Option<DateTime<Utc>>,
    pub storage_class: Option<StorageClass>,
    pub time_storage_class_updated: Option<DateTime<Utc>>,
    pub size: Option<u64>,
    pub md5_hash: Option<String>,
    pub media_link: Option<String>,
    pub content_language: Option<String>,
    pub crc32c: Option<String>,
    pub etag: Option<String>,
    pub metadata: Option<BTreeMap<String, String>>,
}

Metadata associated with an Object.

Fields

kind: Option<String>

The kind of item this is. For objects, this is always storage#object.

id: Option<String>

The ID of the object, including the bucket name, object name, and generation number.

self_link: Option<String>

The link to this object.

name: Option<String>

The name of the object. Required if not specified by URL parameter. writable

bucket: Option<String>

The name of the bucket containing this object.

generation: Option<i64>

The content generation of this object. Used for object versioning.

metageneration: Option<i64>

The version of the metadata for this object at this generation. Used for preconditions and for detecting changes in metadata. A metageneration number is only meaningful in the context of a particular generation of a particular object.

content_type: Option<String>

Content-Type of the object data. If an object is stored without a Content-Type, it is served as application/octet-stream. writable

time_created: Option<DateTime<Utc>>

The creation time of the object in RFC 3339 format.

updated: Option<DateTime<Utc>>

The modification time of the object metadata in RFC 3339 format.

storage_class: Option<StorageClass>

Storage class of the object. writable

time_storage_class_updated: Option<DateTime<Utc>>

The time at which the object's storage class was last changed. When the object is initially created, it will be set to timeCreated.

size: Option<u64>

Content-Length of the data in bytes.

md5_hash: Option<String>

MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see Hashes and ETags: Best Practices. writable

media_link: Option<String>

Media download link.

content_language: Option<String>

Content-Language of the object data.

crc32c: Option<String>

CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see Hashes and ETags: Best Practices.

etag: Option<String>

HTTP 1.1 Entity tag for the object.

metadata: Option<BTreeMap<String, String>>

User-provided metadata, in key/value pairs. writable

Trait Implementations

impl Default for ObjectMetadata[src]

impl Serialize for ObjectMetadata[src]

impl<'de> Deserialize<'de> for ObjectMetadata[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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