pub struct SdkResponse {
pub body: Vec<u8>,
pub headers: BTreeMap<String, String>,
pub status: u16,
}Expand description
Canonical SDK response returned by a transport implementation.
Fields§
§body: Vec<u8>Response body bytes.
headers: BTreeMap<String, String>Response headers represented as UTF-8 strings when possible.
status: u16HTTP status code.
Trait Implementations§
Source§impl Clone for SdkResponse
impl Clone for SdkResponse
Source§fn clone(&self) -> SdkResponse
fn clone(&self) -> SdkResponse
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 SdkResponse
impl Debug for SdkResponse
Source§impl PartialEq for SdkResponse
impl PartialEq for SdkResponse
impl Eq for SdkResponse
impl StructuralPartialEq for SdkResponse
Auto Trait Implementations§
impl Freeze for SdkResponse
impl RefUnwindSafe for SdkResponse
impl Send for SdkResponse
impl Sync for SdkResponse
impl Unpin for SdkResponse
impl UnsafeUnpin for SdkResponse
impl UnwindSafe for SdkResponse
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.