Struct rincon_client::collection::types::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 Debug for Collection
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
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
impl From<CollectionRevision> for Collection
[src]
fn from(properties: CollectionRevision) -> Self
[src]
Performs the conversion.
impl From<BasicCollectionProperties> for Collection
[src]
fn from(basic_properties: BasicCollectionProperties) -> Self
[src]
Performs the conversion.
impl From<CollectionProperties> for Collection
[src]
fn from(properties: CollectionProperties) -> Self
[src]
Performs the conversion.