Struct rincon_client::collection::types::CollectionProperties
[−]
[src]
pub struct CollectionProperties { /* fields omitted */ }
This struct holds the properties of a collection.
It is returned by the GetCollectionProperties
method.
Methods
impl CollectionProperties
[src]
pub fn id(&self) -> &str
[src]
Returns the id of the collection.
pub fn name(&self) -> &str
[src]
Returns the name of the collection.
pub fn kind(&self) -> CollectionType
[src]
Returns the type of the collection.
pub fn status(&self) -> CollectionStatus
[src]
Returns the status of the collection.
pub fn is_system(&self) -> bool
[src]
Returns whether the collection is a system or regular collection.
pub fn key_options(&self) -> &KeyOptions
[src]
Returns the key options of the collection.
pub fn is_wait_for_sync(&self) -> bool
[src]
Returns whether the server waits for sync to the filesystem before sending the response.
pub fn number_of_shards(&self) -> u16
[src]
Returns the number of shards for this collection.
[src]
Returns the keys to determine the shard for a collection.
pub fn replication_factor(&self) -> u64
[src]
Returns the number of copies that are kept of each shard.
pub fn is_volatile(&self) -> bool
[src]
Returns whether this collection is a volatile collection.
pub fn is_do_compact(&self) -> bool
[src]
Returns whether this collection is compacted.
pub fn index_buckets(&self) -> u16
[src]
Returns the number of buckets into which indexes using a hash table are split.
pub fn journal_size(&self) -> u64
[src]
Returns the maximal size of a journal or datafile in bytes.
Trait Implementations
impl From<CollectionProperties> for Collection
[src]
fn from(properties: CollectionProperties) -> Self
[src]
Performs the conversion.
impl From<CollectionProperties> for BasicCollectionProperties
[src]
fn from(properties: CollectionProperties) -> Self
[src]
Performs the conversion.
impl Debug for CollectionProperties
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for CollectionProperties
[src]
fn clone(&self) -> CollectionProperties
[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