pub struct ObjectInfo {
pub name: String,
pub description: Option<String>,
pub options: Option<ObjectOptions>,
pub bucket: String,
pub nuid: String,
pub size: usize,
pub chunks: usize,
pub modified: Option<OffsetDateTime>,
pub digest: Option<String>,
pub deleted: bool,
}
Expand description
Meta and instance information about an object.
Fields§
§name: String
Name of the object
description: Option<String>
A short human readable description of the object.
options: Option<ObjectOptions>
Link this object points to, if any.
bucket: String
Name of the bucket the object is stored in.
nuid: String
Unique identifier used to uniquely identify this version of the object.
size: usize
Size in bytes of the object.
chunks: usize
Number of chunks the object is stored in.
modified: Option<OffsetDateTime>
Date and time the object was last modified.
digest: Option<String>
Digest of the object stream.
deleted: bool
Set to true if the object has been deleted.
Trait Implementations§
Source§impl AsObjectInfo for &ObjectInfo
impl AsObjectInfo for &ObjectInfo
fn as_info(&self) -> &ObjectInfo
Source§impl Clone for ObjectInfo
impl Clone for ObjectInfo
Source§fn clone(&self) -> ObjectInfo
fn clone(&self) -> ObjectInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ObjectInfo
impl Debug for ObjectInfo
Source§impl<'de> Deserialize<'de> for ObjectInfo
impl<'de> Deserialize<'de> for ObjectInfo
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ObjectInfo> for ObjectMetadata
impl From<ObjectInfo> for ObjectMetadata
Source§fn from(info: ObjectInfo) -> Self
fn from(info: ObjectInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ObjectInfo
impl PartialEq for ObjectInfo
Source§impl Serialize for ObjectInfo
impl Serialize for ObjectInfo
impl Eq for ObjectInfo
impl StructuralPartialEq for ObjectInfo
Auto Trait Implementations§
impl Freeze for ObjectInfo
impl RefUnwindSafe for ObjectInfo
impl Send for ObjectInfo
impl Sync for ObjectInfo
impl Unpin for ObjectInfo
impl UnwindSafe for ObjectInfo
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
Mutably borrows from an owned value. Read more