pub struct MiddlewareStackDisplay { /* private fields */ }Expand description
Middleware stack display component.
Implementations§
Source§impl MiddlewareStackDisplay
impl MiddlewareStackDisplay
Sourcepub fn new(middlewares: Vec<MiddlewareInfo>) -> Self
pub fn new(middlewares: Vec<MiddlewareInfo>) -> Self
Create a new middleware stack display.
Sourcepub fn hide_config(self) -> Self
pub fn hide_config(self) -> Self
Hide configuration summaries.
Sourcepub fn render(&self, output: &RichOutput)
pub fn render(&self, output: &RichOutput)
Render the middleware stack to the provided output.
Sourcepub fn as_plain_text(&self) -> String
pub fn as_plain_text(&self) -> String
Return a plain text representation.
Trait Implementations§
Source§impl Clone for MiddlewareStackDisplay
impl Clone for MiddlewareStackDisplay
Source§fn clone(&self) -> MiddlewareStackDisplay
fn clone(&self) -> MiddlewareStackDisplay
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 MiddlewareStackDisplay
impl RefUnwindSafe for MiddlewareStackDisplay
impl Send for MiddlewareStackDisplay
impl Sync for MiddlewareStackDisplay
impl Unpin for MiddlewareStackDisplay
impl UnsafeUnpin for MiddlewareStackDisplay
impl UnwindSafe for MiddlewareStackDisplay
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