pub struct PrHttpResponse {
pub status: u16,
pub headers: BTreeMap<String, String>,
pub body: Vec<u8>,
}Expand description
Bounded HTTP response returned by an injected transport.
Fields§
§status: u16HTTP status code.
headers: BTreeMap<String, String>Response headers.
body: Vec<u8>Response bytes, bounded by the request contract.
Trait Implementations§
Source§impl Clone for PrHttpResponse
impl Clone for PrHttpResponse
Source§fn clone(&self) -> PrHttpResponse
fn clone(&self) -> PrHttpResponse
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 PrHttpResponse
impl Debug for PrHttpResponse
impl Eq for PrHttpResponse
Source§impl PartialEq for PrHttpResponse
impl PartialEq for PrHttpResponse
impl StructuralPartialEq for PrHttpResponse
Auto Trait Implementations§
impl Freeze for PrHttpResponse
impl RefUnwindSafe for PrHttpResponse
impl Send for PrHttpResponse
impl Sync for PrHttpResponse
impl Unpin for PrHttpResponse
impl UnsafeUnpin for PrHttpResponse
impl UnwindSafe for PrHttpResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.