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§
Source§impl 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 Freeze for Json
impl RefUnwindSafe for Json
impl Send for Json
impl Sync for Json
impl Unpin for Json
impl UnsafeUnpin for Json
impl UnwindSafe for Json
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more