pub struct ApiResponse<T> {
pub body: T,
pub request_id: Supplied<String>,
pub next_page: Supplied<Url>,
}Expand description
A typed OANDA response with the provider’s request and pagination metadata.
Fields§
§body: TDeserialized response body.
request_id: Supplied<String>OANDA’s RequestID response header as supplied evidence: Absent when
OANDA sent none, Decoded when this client read it, Undecoded when it
sent one this client cannot read as text.
next_page: Supplied<Url>The Link header’s next-page URL as supplied evidence: Absent when no
next page was offered, Decoded when validated, Undecoded when OANDA
offered one this client could not read. A readable link that leaves this
client’s API origin is refused with an error instead: it decoded fine
and was rejected, not lost.
Trait Implementations§
Source§impl<T: Clone> Clone for ApiResponse<T>
impl<T: Clone> Clone for ApiResponse<T>
Source§impl<T: Debug> Debug for ApiResponse<T>
impl<T: Debug> Debug for ApiResponse<T>
Auto Trait Implementations§
impl<T> Freeze for ApiResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for ApiResponse<T>where
T: RefUnwindSafe,
impl<T> Send for ApiResponse<T>where
T: Send,
impl<T> Sync for ApiResponse<T>where
T: Sync,
impl<T> Unpin for ApiResponse<T>where
T: Unpin,
impl<T> UnsafeUnpin for ApiResponse<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ApiResponse<T>where
T: UnwindSafe,
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