Struct rincon_client::collection::methods::CreateCollection
[−]
[src]
pub struct CreateCollection { /* fields omitted */ }
Creates a new collection with the given name.
Methods
impl CreateCollection
[src]
pub fn new(collection: NewCollection) -> Self
[src]
Constructs a new instance of the CreateCollection
method with the
given NewCollection
parameters.
pub fn with_name<N>(name: N) -> Self where
N: Into<String>,
[src]
N: Into<String>,
Constructs a new instance of the CreateCollection
method that will
create a new collection with the given name and the default collection
type. The default collection type is defined by the ArangoDB server.
All other parameters will be set to their default values.
pub fn documents_with_name<N>(name: N) -> Self where
N: Into<String>,
[src]
N: Into<String>,
Constructs a new instance of the CreateCollection
method that will
create a new documents collection with the given name.
All other parameters will be set to their default values.
pub fn edges_with_name<N>(name: N) -> Self where
N: Into<String>,
[src]
N: Into<String>,
Constructs a new instance of the CreateCollection
method that will
create a new edge collection with the given name.
All other parameters will be set to their default values.
pub fn set_wait_for_sync_replication(&mut self, wait_for_sync_replication: bool)
[src]
Set whether the server shall wait until the new collection has been created at all replications before it returns the response.
pub fn collection(&self) -> &NewCollection
[src]
Returns the parameters that are going to be used to create the new collection.
pub fn is_wait_for_sync_replication(&self) -> bool
[src]
Returns whether the request will wait until the new collection has been created at all replications.
Trait Implementations
impl Debug for CreateCollection
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for CreateCollection
[src]
fn clone(&self) -> CreateCollection
[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 PartialEq for CreateCollection
[src]
fn eq(&self, __arg_0: &CreateCollection) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CreateCollection) -> bool
[src]
This method tests for !=
.
impl Method for CreateCollection
[src]
type Result = BasicCollectionProperties
The type of the result of a method call.
const RETURN_TYPE: RpcReturnType
RETURN_TYPE: RpcReturnType = RpcReturnType{result_field: None, code_field: Some(FIELD_CODE),}
Specification of the fields of RPC-like return type. Read more
fn return_type(&self) -> RpcReturnType
[src]
Returns the specification of the RPC-like return type.
impl Prepare for CreateCollection
[src]
type Content = NewCollection
The type of the content of a method call. Read more
fn operation(&self) -> Operation
[src]
Returns the type of operation this method is executing.
fn path(&self) -> String
[src]
Returns the resource path of a REST operation.
fn parameters(&self) -> Parameters
[src]
Returns the query parameters of this method. Read more
fn header(&self) -> Parameters
[src]
Returns the header parameters of this method. Read more
fn content(&self) -> Option<&Self::Content>
[src]
Returns the content of this method if any. Read more