pub struct HttpCachePayload {
pub body: String,
pub headers: HashMap<String, String>,
pub metadata: Option<HashMap<String, String>>,
}Expand description
HTTP-specific cache payload
Fields§
§body: StringThe HTTP response body
headers: HashMap<String, String>HTTP response headers
metadata: Option<HashMap<String, String>>Additional metadata about the request/response
Trait Implementations§
Source§impl Clone for HttpCachePayload
impl Clone for HttpCachePayload
Source§impl Debug for HttpCachePayload
impl Debug for HttpCachePayload
Source§impl<'de> Deserialize<'de> for HttpCachePayload
impl<'de> Deserialize<'de> for HttpCachePayload
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 PartialEq for HttpCachePayload
impl PartialEq for HttpCachePayload
Source§impl Serialize for HttpCachePayload
impl Serialize for HttpCachePayload
impl StructuralPartialEq for HttpCachePayload
Auto Trait Implementations§
impl Freeze for HttpCachePayload
impl RefUnwindSafe for HttpCachePayload
impl Send for HttpCachePayload
impl Sync for HttpCachePayload
impl Unpin for HttpCachePayload
impl UnsafeUnpin for HttpCachePayload
impl UnwindSafe for HttpCachePayload
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