pub struct Answer {
pub status: u16,
pub retry_after_s: Option<u64>,
pub body: Option<Vec<u8>>,
}Expand description
What the endpoint answered.
Fields§
§status: u16The HTTP status code.
retry_after_s: Option<u64>Retry-After in seconds, when it gave one in that form.
body: Option<Vec<u8>>The body of a 2xx answer, read whole, at most MAX_BODY bytes;
None for any other answer and for a body longer, cut off, badly
chunked or not read in time.
Implementations§
Trait Implementations§
impl Eq for Answer
impl StructuralPartialEq for Answer
Auto Trait Implementations§
impl Forget for Answer
impl Freeze for Answer
impl Move for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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