pub struct BatchResponse {
pub path: String,
pub body: SmartcarResponseBody,
pub code: i32,
pub headers: Option<Meta>,
}Expand description
Contains the response body AND metadata of a single endpoint in a batch request
e.g. If you sent a batch request, requesting for endpoints /odometer, /charge, AND /vin,
This struct represents the singular response to any of those requests.
Therefore, there will be three of these BatchResponse structs in the response field of the Batch struct. One for Odometer, one for Charge, and one for Vin.
Fields§
§path: String§body: SmartcarResponseBody§code: i32§headers: Option<Meta>Trait Implementations§
Source§impl Debug for BatchResponse
impl Debug for BatchResponse
Source§impl<'de> Deserialize<'de> for BatchResponse
impl<'de> Deserialize<'de> for BatchResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BatchResponse
impl RefUnwindSafe for BatchResponse
impl Send for BatchResponse
impl Sync for BatchResponse
impl Unpin for BatchResponse
impl UnwindSafe for BatchResponse
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