pub struct ApiResponse<T> {
pub body: T,
pub request_id: Supplied<RequestID>,
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<RequestID>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 on reads. On a decoded mutation
success, an unusable link is Undecoded so its failure cannot erase the accepted
body or incorrectly fence the account.
Trait Implementations§
Source§impl<T: Clone> Clone for ApiResponse<T>
impl<T: Clone> Clone 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