Struct rincon_session::client::Collection
[−]
[src]
pub struct Collection { /* fields omitted */ }
This struct holds attributes of a collection.
It is returned by the GetCollection
and ListCollection
methods.
Methods
impl Collection
[src]
pub fn id(&self) -> &str
[src]
Returns the id of this collection.
pub fn name(&self) -> &str
[src]
Returns the name of this collection.
pub fn kind(&self) -> CollectionType
[src]
Returns the type of this collection.
pub fn status(&self) -> CollectionStatus
[src]
Returns the status of this collection.
pub fn is_system(&self) -> bool
[src]
Returns whether this collection is a system collection or regular collection.
pub fn unwrap_id(self) -> String
[src]
Unwraps the id of this collection
pub fn unwrap_name(self) -> String
[src]
Unwraps the name of this collection.
Trait Implementations
impl<'de> Deserialize<'de> for Collection
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Collection, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Collection, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl From<BasicCollectionProperties> for Collection
[src]
fn from(basic_properties: BasicCollectionProperties) -> Collection
[src]
Performs the conversion.
impl From<CollectionRevision> for Collection
[src]
fn from(properties: CollectionRevision) -> Collection
[src]
Performs the conversion.
impl From<CollectionProperties> for Collection
[src]
fn from(properties: CollectionProperties) -> Collection
[src]
Performs the conversion.
impl Clone for Collection
[src]
fn clone(&self) -> Collection
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more