#[non_exhaustive]pub struct Response<T> {
pub request_id: Option<String>,
pub credits_used: Option<i64>,
pub credits_remaining: Option<i64>,
pub data: T,
}Expand description
A successful (completed/queued) response envelope with typed data.
The envelope fields are preserved rather than flattened so callers can watch credit drain and keep the two request ids distinct.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.request_id: Option<String>Support-facing request id (req_…), from the envelope or X-Request-ID.
credits_used: Option<i64>Credits charged for this call. Absent on SmartBrowse dispatch, and 0
for free polling endpoints.
credits_remaining: Option<i64>Wallet balance after this call. Absent on SmartBrowse dispatch.
data: TThe typed data payload.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Response<T>where
T: Freeze,
impl<T> RefUnwindSafe for Response<T>where
T: RefUnwindSafe,
impl<T> Send for Response<T>where
T: Send,
impl<T> Sync for Response<T>where
T: Sync,
impl<T> Unpin for Response<T>where
T: Unpin,
impl<T> UnsafeUnpin for Response<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Response<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