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 ==
.source§impl Serialize for ObjectMetadata
impl Serialize for ObjectMetadata
impl Eq for ObjectMetadata
impl StructuralEq for ObjectMetadata
impl StructuralPartialEq for ObjectMetadata
Auto Trait Implementations§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.