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
sourceimpl Clone for ObjectMeta
impl Clone for ObjectMeta
sourcefn clone(&self) -> ObjectMeta
fn clone(&self) -> ObjectMeta
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 ObjectMeta
impl Debug for ObjectMeta
sourceimpl Default for ObjectMeta
impl Default for ObjectMeta
sourcefn default() -> ObjectMeta
fn default() -> ObjectMeta
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ObjectMeta
impl<'de> Deserialize<'de> for ObjectMeta
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 From<&'_ str> for ObjectMeta
impl From<&'_ str> for ObjectMeta
sourcefn from(s: &str) -> ObjectMeta
fn from(s: &str) -> ObjectMeta
Converts to this type from the input type.
sourceimpl PartialEq<ObjectMeta> for ObjectMeta
impl PartialEq<ObjectMeta> for ObjectMeta
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ObjectMeta) -> bool
fn ne(&self, other: &ObjectMeta) -> bool
This method tests for !=
.
sourceimpl Serialize for ObjectMeta
impl Serialize for ObjectMeta
impl Eq for ObjectMeta
impl StructuralEq for ObjectMeta
impl StructuralPartialEq for ObjectMeta
Auto Trait Implementations
impl RefUnwindSafe for ObjectMeta
impl Send for ObjectMeta
impl Sync for ObjectMeta
impl Unpin for ObjectMeta
impl UnwindSafe for ObjectMeta
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more