pub type BoxEndpoint<'a, T> = Box<dyn Endpoint<Output = T> + 'a>;
An owned dynamically typed Endpoint for use in cases where you can’t statically type your result or need to add some indirection.
Endpoint