pub struct RouteDisplay { /* private fields */ }Expand description
Route table display.
Implementations§
Source§impl RouteDisplay
impl RouteDisplay
Sourcepub fn new(mode: OutputMode) -> Self
pub fn new(mode: OutputMode) -> Self
Create a new route display.
Sourcepub fn with_config(mode: OutputMode, config: RouteTableConfig) -> Self
pub fn with_config(mode: OutputMode, config: RouteTableConfig) -> Self
Create with custom configuration.
Sourcepub fn theme(self, theme: FastApiTheme) -> Self
pub fn theme(self, theme: FastApiTheme) -> Self
Set the theme.
Sourcepub fn render(&self, routes: &[RouteEntry]) -> String
pub fn render(&self, routes: &[RouteEntry]) -> String
Render the route table.
Trait Implementations§
Source§impl Clone for RouteDisplay
impl Clone for RouteDisplay
Source§fn clone(&self) -> RouteDisplay
fn clone(&self) -> RouteDisplay
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 RouteDisplay
impl RefUnwindSafe for RouteDisplay
impl Send for RouteDisplay
impl Sync for RouteDisplay
impl Unpin for RouteDisplay
impl UnsafeUnpin for RouteDisplay
impl UnwindSafe for RouteDisplay
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