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
sourceimpl Clone for ObjectMetadata
impl Clone for ObjectMetadata
sourcefn clone(&self) -> ObjectMetadata
fn clone(&self) -> ObjectMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ObjectMetadata
impl Debug for ObjectMetadata
sourceimpl Default for ObjectMetadata
impl Default for ObjectMetadata
sourcefn default() -> ObjectMetadata
fn default() -> ObjectMetadata
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ObjectMetadata
impl<'de> Deserialize<'de> for ObjectMetadata
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ObjectMetadata> for ObjectMetadata
impl PartialEq<ObjectMetadata> for ObjectMetadata
sourcefn eq(&self, other: &ObjectMetadata) -> bool
fn eq(&self, other: &ObjectMetadata) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ObjectMetadata) -> bool
fn ne(&self, other: &ObjectMetadata) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more