Trait stripe::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);
}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.