pub struct Response {
pub status_code: u16,
pub body: Vec<u8>,
pub request_id: String,
pub rate_limit: Option<RateLimitInfo>,
pub duration: Duration,
}Expand description
Response wrapper with metadata.
Fields§
§status_code: u16HTTP status code.
body: Vec<u8>Raw response body bytes.
request_id: StringFacebook request ID from x-fb-request-id header.
rate_limit: Option<RateLimitInfo>Rate limit info parsed from response headers.
duration: DurationRound-trip request duration.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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