Struct nats::object_store::ObjectInfo
source · [−]pub struct ObjectInfo {
pub name: String,
pub description: Option<String>,
pub link: Option<ObjectLink>,
pub bucket: String,
pub nuid: String,
pub size: usize,
pub chunks: usize,
pub modified: DateTime,
pub digest: String,
pub deleted: bool,
}
unstable
only.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.
link: Option<ObjectLink>
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: DateTime
Date and time the object was last modified.
digest: String
Digest of the object stream.
deleted: bool
Set to true if the object has been deleted.
Trait Implementations
sourceimpl Clone for ObjectInfo
impl Clone for ObjectInfo
sourcefn clone(&self) -> ObjectInfo
fn clone(&self) -> ObjectInfo
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 ObjectInfo
impl Debug for ObjectInfo
sourceimpl<'de> Deserialize<'de> for ObjectInfo
impl<'de> Deserialize<'de> for ObjectInfo
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<ObjectInfo> for ObjectInfo
impl PartialEq<ObjectInfo> for ObjectInfo
sourcefn eq(&self, other: &ObjectInfo) -> bool
fn eq(&self, other: &ObjectInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ObjectInfo) -> bool
fn ne(&self, other: &ObjectInfo) -> bool
This method tests for !=
.
sourceimpl Serialize for ObjectInfo
impl Serialize for ObjectInfo
impl Eq for ObjectInfo
impl StructuralEq for ObjectInfo
impl StructuralPartialEq for ObjectInfo
Auto Trait Implementations
impl RefUnwindSafe for ObjectInfo
impl Send for ObjectInfo
impl Sync for ObjectInfo
impl Unpin for ObjectInfo
impl UnwindSafe for ObjectInfo
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
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