Struct rincon_client::document::methods::InsertDocuments
[−]
[src]
pub struct InsertDocuments<T> { /* fields omitted */ }
Methods
impl<T> InsertDocuments<T>
[src]
pub fn new<N, Docs>(collection_name: N, documents: Docs) -> Self where
N: Into<String>,
Docs: IntoIterator<Item = NewDocument<T>>,
[src]
N: Into<String>,
Docs: IntoIterator<Item = NewDocument<T>>,
pub fn collection_name(&self) -> &str
[src]
pub fn documents(&self) -> &[NewDocument<T>]
[src]
pub fn with_force_wait_for_sync(self, force_wait_for_sync: bool) -> Self
[src]
pub fn is_force_wait_for_sync(&self) -> Option<bool>
[src]
Trait Implementations
impl<T: Debug> Debug for InsertDocuments<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Clone> Clone for InsertDocuments<T>
[src]
fn clone(&self) -> InsertDocuments<T>
[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<T: PartialEq> PartialEq for InsertDocuments<T>
[src]
fn eq(&self, __arg_0: &InsertDocuments<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InsertDocuments<T>) -> bool
[src]
This method tests for !=
.
impl<T> Method for InsertDocuments<T> where
T: DeserializeOwned,
[src]
T: DeserializeOwned,
type Result = ResultList<DocumentHeader>
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<T> Prepare for InsertDocuments<T> where
T: Serialize + Debug,
[src]
T: Serialize + Debug,
type Content = Vec<NewDocument<T>>
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
Auto Trait Implementations
impl<T> Send for InsertDocuments<T> where
T: Send,
T: Send,
impl<T> Sync for InsertDocuments<T> where
T: Sync,
T: Sync,