pub struct ObjectMetadata {
pub object_id: ObjectId,
pub container_id: ContainerId,
pub content_length: u64,
pub last_modified: Option<Timestamp>,
pub content_type: Option<String>,
pub content_encoding: Option<String>,
}
Fields§
§object_id: ObjectId
Object identifier that is unique within its container. Naming of objects is determined by the capability provider. An object id could be a path, hash of object contents, or some other unique identifier.
container_id: ContainerId
container of the object
content_length: u64
size of the object in bytes
last_modified: Option<Timestamp>
date object was last modified
content_type: Option<String>
A MIME type of the object see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17 Provider implementations may return None for this field for metadata returned from ListObjects
content_encoding: Option<String>
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the contentType field. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11. Provider implementations may return None for this field for metadata returned from ListObjects
Trait Implementations§
source§impl Clone for ObjectMetadata
impl Clone for ObjectMetadata
source§fn clone(&self) -> ObjectMetadata
fn clone(&self) -> ObjectMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>,
source§impl PartialEq<ObjectMetadata> for ObjectMetadata
impl PartialEq<ObjectMetadata> for ObjectMetadata
source§fn eq(&self, other: &ObjectMetadata) -> bool
fn eq(&self, other: &ObjectMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.