pub trait MakeFmt<T> { type Target; // Required method fn make(&self, source: T) -> Self::Target; }
A standard interface for taking some component of the HTTP request/response and transforming it into new struct which enjoys Debug or Display. This allows for polymorphism over formatting approaches.
Debug
Display
Target of the fmt transformation.
fmt
Transforms a source into a target, altering it’s Display or Debug implementation.