pub struct RoutingDebug {
pub show_all_candidates: bool,
pub show_middleware: bool,
/* private fields */
}Expand description
Routing debug output formatter.
Fields§
§show_all_candidates: boolShow all candidates or just relevant ones.
show_middleware: boolShow middleware stack.
Implementations§
Source§impl RoutingDebug
impl RoutingDebug
Sourcepub fn new(mode: OutputMode) -> Self
pub fn new(mode: OutputMode) -> Self
Create a new routing debug formatter.
Sourcepub fn theme(self, theme: FastApiTheme) -> Self
pub fn theme(self, theme: FastApiTheme) -> Self
Set the theme.
Sourcepub fn format(&self, info: &RoutingDebugInfo) -> String
pub fn format(&self, info: &RoutingDebugInfo) -> String
Format routing debug information.
Trait Implementations§
Source§impl Clone for RoutingDebug
impl Clone for RoutingDebug
Source§fn clone(&self) -> RoutingDebug
fn clone(&self) -> RoutingDebug
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RoutingDebug
impl RefUnwindSafe for RoutingDebug
impl Send for RoutingDebug
impl Sync for RoutingDebug
impl Unpin for RoutingDebug
impl UnsafeUnpin for RoutingDebug
impl UnwindSafe for RoutingDebug
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more