pub struct ResponseRecord {
pub ok: bool,
pub status: u16,
pub headers: BTreeMap<String, String>,
pub body: Bytes,
}Expand description
What both legs of a shadow call return.
Fields§
§ok: boolWhether the call completed normally. Backends that handle their own
errors should leave this true and put any error payload in body.
status: u16HTTP-ish status code (or 0 for non-HTTP calls). Diffed unless the
caller adds it to crate::config::IgnoreField::Status.
headers: BTreeMap<String, String>Sorted-by-key headers map. Diffed unless crate::config::IgnoreField::Headers.
body: BytesResponse body, opaque.
Implementations§
Trait Implementations§
Source§impl Clone for ResponseRecord
impl Clone for ResponseRecord
Source§fn clone(&self) -> ResponseRecord
fn clone(&self) -> ResponseRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponseRecord
impl Debug for ResponseRecord
Source§impl PartialEq for ResponseRecord
impl PartialEq for ResponseRecord
Source§fn eq(&self, other: &ResponseRecord) -> bool
fn eq(&self, other: &ResponseRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ResponseRecord
impl StructuralPartialEq for ResponseRecord
Auto Trait Implementations§
impl !Freeze for ResponseRecord
impl RefUnwindSafe for ResponseRecord
impl Send for ResponseRecord
impl Sync for ResponseRecord
impl Unpin for ResponseRecord
impl UnsafeUnpin for ResponseRecord
impl UnwindSafe for ResponseRecord
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