Struct nats::object_store::ObjectMeta
source · pub struct ObjectMeta {
pub name: String,
pub description: Option<String>,
pub link: Option<ObjectLink>,
}
Available on crate feature
unstable
only.Expand description
Meta 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.
Trait Implementations§
source§impl Clone for ObjectMeta
impl Clone for ObjectMeta
source§fn clone(&self) -> ObjectMeta
fn clone(&self) -> ObjectMeta
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 ObjectMeta
impl Debug for ObjectMeta
source§impl Default for ObjectMeta
impl Default for ObjectMeta
source§fn default() -> ObjectMeta
fn default() -> ObjectMeta
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ObjectMeta
impl<'de> Deserialize<'de> for ObjectMeta
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<&str> for ObjectMeta
impl From<&str> for ObjectMeta
source§fn from(s: &str) -> ObjectMeta
fn from(s: &str) -> ObjectMeta
Converts to this type from the input type.
source§impl PartialEq for ObjectMeta
impl PartialEq for ObjectMeta
source§fn eq(&self, other: &ObjectMeta) -> bool
fn eq(&self, other: &ObjectMeta) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ObjectMeta
impl Serialize for ObjectMeta
impl Eq for ObjectMeta
impl StructuralPartialEq for ObjectMeta
Auto Trait Implementations§
impl Freeze for ObjectMeta
impl RefUnwindSafe for ObjectMeta
impl Send for ObjectMeta
impl Sync for ObjectMeta
impl Unpin for ObjectMeta
impl UnwindSafe for ObjectMeta
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