pub trait RequestExt {
// Required methods
fn client_info(&self) -> ClientInfo;
fn get_headers(&self) -> Map<String, Value>;
fn json<T: DeserializeOwned>(bytes: Bytes) -> AppResult<T>;
fn ip(&self) -> Option<String>;
fn user_agent(&self) -> Option<String>;
}Required Methods§
fn client_info(&self) -> ClientInfo
fn get_headers(&self) -> Map<String, Value>
fn json<T: DeserializeOwned>(bytes: Bytes) -> AppResult<T>
fn ip(&self) -> Option<String>
fn user_agent(&self) -> Option<String>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.