pub struct Batch {
pub queries: Vec<BatchQuery>,
pub key: Option<Box<str>>,
pub fields: Option<Box<str>>,
pub lang: Option<Lang>,
}Fields
queries: Vec<BatchQuery>key: Option<Box<str>>fields: Option<Box<str>>lang: Option<Lang>Implementations
Trait Implementations
sourceimpl Endpoint for Batch
impl Endpoint for Batch
type RenderRequestError = EndpointError
type ParseResponseOutput = (BatchResponseBodyJson, Option<RateLimit>)
type ParseResponseError = EndpointError
fn render_request(&self) -> Result<Request<Body>, Self::RenderRequestError>
fn parse_response(
&self,
response: Response<Body>
) -> Result<Self::ParseResponseOutput, Self::ParseResponseError>
Auto Trait Implementations
impl RefUnwindSafe for Batch
impl Send for Batch
impl Sync for Batch
impl Unpin for Batch
impl UnwindSafe for Batch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more