pub struct DecodedResponse {
pub headers: BTreeMap<String, String>,
pub json_body: Option<Value>,
pub raw_body: Vec<u8>,
pub schema_name: Option<&'static str>,
pub status: u16,
}Expand description
Decoded response payload returned by the generic SDK pipeline.
Fields§
§headers: BTreeMap<String, String>Response headers preserved as UTF-8 strings when possible.
json_body: Option<Value>Parsed JSON body when the documented response content type is JSON.
raw_body: Vec<u8>Raw response body bytes.
schema_name: Option<&'static str>Matched response schema name when documented.
status: u16HTTP status code returned by the server.
Implementations§
Trait Implementations§
Source§impl Clone for DecodedResponse
impl Clone for DecodedResponse
Source§fn clone(&self) -> DecodedResponse
fn clone(&self) -> DecodedResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 DecodedResponse
impl Debug for DecodedResponse
Source§impl PartialEq for DecodedResponse
impl PartialEq for DecodedResponse
impl Eq for DecodedResponse
impl StructuralPartialEq for DecodedResponse
Auto Trait Implementations§
impl Freeze for DecodedResponse
impl RefUnwindSafe for DecodedResponse
impl Send for DecodedResponse
impl Sync for DecodedResponse
impl Unpin for DecodedResponse
impl UnsafeUnpin for DecodedResponse
impl UnwindSafe for DecodedResponse
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
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.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
Compares
self with key and returns true if they are equal.