pub struct Response { /* private fields */ }
Expand description
The self-referencing struct.
Implementations§
source§impl Response
impl Response
pub fn values(&self) -> &HashMap<&str, ResponseVal<'_>>
sourcepub fn raw_response(&self) -> &str
pub fn raw_response(&self) -> &str
Returns the raw response from the server. This should only ever be necessary for debugging, caching, or in case there is ever a new response format in a response, that is not yet supported. You can of course also use this to look at how horrible the S&F encoding is..
pub fn received_at(&self) -> NaiveDateTime
Trait Implementations§
source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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