pub struct Response<'a, T> {
pub headers: HashMap<Cow<'a, str>, MultiValue<'a>>,
pub data: T,
}Fields§
§headers: HashMap<Cow<'a, str>, MultiValue<'a>>§data: TImplementations§
Trait Implementations§
Source§impl<'de: 'a, 'a, T> Deserialize<'de> for Response<'a, T>where
T: Deserialize<'de>,
impl<'de: 'a, 'a, T> Deserialize<'de> for Response<'a, T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a, T: IntoBoundedStatic + 'a> IntoBoundedStatic for Response<'a, T>
impl<'a, T: IntoBoundedStatic + 'a> IntoBoundedStatic for Response<'a, T>
Source§type Static = Response<'static, <T as IntoBoundedStatic>::Static>
type Static = Response<'static, <T as IntoBoundedStatic>::Static>
The target type is bounded by the
'static lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T into an owned T such that T: 'static.Source§impl<T: ToBoundedStatic> ToBoundedStatic for Response<'_, T>
impl<T: ToBoundedStatic> ToBoundedStatic for Response<'_, T>
impl<'a, T: Eq> Eq for Response<'a, T>
impl<'a, T> StructuralPartialEq for Response<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Response<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Response<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Response<'a, T>where
T: Send,
impl<'a, T> Sync for Response<'a, T>where
T: Sync,
impl<'a, T> Unpin for Response<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for Response<'a, T>where
T: UnsafeUnpin,
impl<'a, T> UnwindSafe for Response<'a, T>where
T: UnwindSafe,
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.