Struct tame_gcs::objects::Metadata [−][src]
Metadata associated with an Object.
Fields
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
content_disposition: Option<String>
Content-Disposition
of the object data. writable
content_encoding: Option<String>
Content-Encoding
of the object data. 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. writable
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 Metadata
[src]
impl<'de> Deserialize<'de> for Metadata
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Metadata
[src]
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,