Trait gmail::InMemoryResponseExt
source · pub trait InMemoryResponseExt {
// Required methods
fn new(status: StatusCode, headers: HeaderMap, body: InMemoryBody) -> Self;
fn text(self) -> Result<String, Error>;
fn json<U>(self) -> Result<U, Error>
where U: DeserializeOwned;
fn bytes(self) -> Result<Bytes, Error>;
fn sanitize(&mut self);
fn get_cookie(&self, name: &str) -> Option<&str>;
}
Required Methods§
fn new(status: StatusCode, headers: HeaderMap, body: InMemoryBody) -> Self
fn text(self) -> Result<String, Error>
fn json<U>(self) -> Result<U, Error>where
U: DeserializeOwned,
fn bytes(self) -> Result<Bytes, Error>
Object Safety§
This trait is not object safe.