Struct elastic_requests::endpoints::CreateRequest
[−]
[src]
pub struct CreateRequest<'a, B> { pub url: Url<'a>, pub body: B, }
Post: /{index}/{type}/{id}/_create
Fields
url: Url<'a>
body: B
Methods
impl<'a, B> CreateRequest<'a, B>
[src]
fn for_index_ty_id<IIndex, IType, IId>(
index: IIndex,
ty: IType,
id: IId,
body: B
) -> Self where
IIndex: Into<Index<'a>>,
IType: Into<Type<'a>>,
IId: Into<Id<'a>>,
[src]
index: IIndex,
ty: IType,
id: IId,
body: B
) -> Self where
IIndex: Into<Index<'a>>,
IType: Into<Type<'a>>,
IId: Into<Id<'a>>,
Request to: /{index}/{type}/{id}/_create
Trait Implementations
impl<'a, B: Debug> Debug for CreateRequest<'a, B>
[src]
impl<'a, B: PartialEq> PartialEq for CreateRequest<'a, B>
[src]
fn eq(&self, __arg_0: &CreateRequest<'a, B>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CreateRequest<'a, B>) -> bool
[src]
This method tests for !=
.
impl<'a, B: Clone> Clone for CreateRequest<'a, B>
[src]
fn clone(&self) -> CreateRequest<'a, B>
[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<'a, B> Into<HttpRequest<'a, B>> for CreateRequest<'a, B>
[src]
fn into(self) -> HttpRequest<'a, B>
[src]
Performs the conversion.