pub struct PyMiddlewareHandler {
pub name: String,
pub func: PyObject,
pub is_coroutine: bool,
}Expand description
A Python middleware handler function representation.
The Python business logic implementation needs to carry some information to be executed properly like if it is a coroutine.
Fields§
§name: String§func: PyObject§is_coroutine: boolImplementations§
Trait Implementations§
source§impl Clone for PyMiddlewareHandler
impl Clone for PyMiddlewareHandler
source§fn clone(&self) -> PyMiddlewareHandler
fn clone(&self) -> PyMiddlewareHandler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more