pub struct Json {
pub query: Box<str>,
pub key: Option<Box<str>>,
pub fields: Option<Box<str>>,
pub lang: Option<Lang>,
}Fields
query: Box<str>key: Option<Box<str>>fields: Option<Box<str>>lang: Option<Lang>Implementations
Trait Implementations
sourceimpl Endpoint for Json
impl Endpoint for Json
type RenderRequestError = EndpointError
type ParseResponseOutput = (JsonResponseBodyJson, 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 Json
impl Send for Json
impl Sync for Json
impl Unpin for Json
impl UnwindSafe for Json
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