pub struct StorageObjectData {Show 29 fields
pub content_encoding: String,
pub content_disposition: String,
pub cache_control: String,
pub content_language: String,
pub metageneration: i64,
pub time_deleted: Option<Timestamp>,
pub content_type: String,
pub size: i64,
pub time_created: Option<Timestamp>,
pub crc32c: String,
pub component_count: i32,
pub md5_hash: String,
pub etag: String,
pub updated: Option<Timestamp>,
pub storage_class: String,
pub kms_key_name: String,
pub time_storage_class_updated: Option<Timestamp>,
pub temporary_hold: bool,
pub retention_expiration_time: Option<Timestamp>,
pub metadata: HashMap<String, String>,
pub event_based_hold: bool,
pub name: String,
pub id: String,
pub bucket: String,
pub generation: i64,
pub customer_encryption: Option<CustomerEncryption>,
pub media_link: String,
pub self_link: String,
pub kind: String,
}Expand description
An object within Google Cloud Storage.
Fields§
§content_encoding: StringContent-Encoding of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
content_disposition: StringContent-Disposition of the object data, matching [https://tools.ietf.org/html/rfc6266][RFC 6266].
cache_control: StringCache-Control directive for the object data, matching [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
content_language: StringContent-Language of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
metageneration: i64The 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.
time_deleted: Option<Timestamp>The deletion time of the object. Will be returned if and only if this version of the object has been deleted.
content_type: StringContent-Type of the object data, matching
[https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
If an object is stored without a Content-Type, it is served as
application/octet-stream.
size: i64Content-Length of the object data in bytes, matching [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
time_created: Option<Timestamp>The creation time of the object. Attempting to set this field will result in an error.
crc32c: StringCRC32c checksum. For more information about using the CRC32c checksum, see [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and ETags: Best Practices].
component_count: i32Number of underlying components that make up this object. Components are accumulated by compose operations. Attempting to set this field will result in an error.
md5_hash: StringMD5 hash of the data; encoded using base64 as per [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4]. For more information about using the MD5 hash, see [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and ETags: Best Practices].
etag: StringHTTP 1.1 Entity tag for the object. See [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3].
updated: Option<Timestamp>The modification time of the object metadata.
storage_class: StringStorage class of the object.
kms_key_name: StringCloud KMS Key used to encrypt this object, if the object is encrypted by such a key.
time_storage_class_updated: Option<Timestamp>The time at which the object’s storage class was last changed.
temporary_hold: boolWhether an object is under temporary hold.
retention_expiration_time: Option<Timestamp>A server-determined value that specifies the earliest time that the object’s retention period expires.
metadata: HashMap<String, String>User-provided metadata, in key/value pairs.
event_based_hold: boolWhether an object is under event-based hold.
name: StringThe name of the object.
id: StringThe ID of the object, including the bucket name, object name, and generation number.
bucket: StringThe name of the bucket containing this object.
generation: i64The content generation of this object. Used for object versioning. Attempting to set this field will result in an error.
customer_encryption: Option<CustomerEncryption>Metadata of customer-supplied encryption key, if the object is encrypted by such a key.
media_link: StringMedia download link.
self_link: StringThe link to this object.
kind: StringThe kind of item this is. For objects, this is always “storage#object”.
Trait Implementations§
Source§impl Clone for StorageObjectData
impl Clone for StorageObjectData
Source§fn clone(&self) -> StorageObjectData
fn clone(&self) -> StorageObjectData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StorageObjectData
impl Debug for StorageObjectData
Source§impl Default for StorageObjectData
impl Default for StorageObjectData
Source§impl Message for StorageObjectData
impl Message for StorageObjectData
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.