pub struct HelpDisplay {
pub max_width: usize,
pub show_env_vars: bool,
pub show_defaults: bool,
/* private fields */
}Expand description
Help display formatter.
Fields§
§max_width: usizeMaximum width for wrapping.
show_env_vars: boolShow environment variables.
show_defaults: boolShow default values.
Implementations§
Source§impl HelpDisplay
impl HelpDisplay
Sourcepub fn new(mode: OutputMode) -> Self
pub fn new(mode: OutputMode) -> Self
Create a new help display.
Sourcepub fn theme(self, theme: FastApiTheme) -> Self
pub fn theme(self, theme: FastApiTheme) -> Self
Set the theme.
Trait Implementations§
Source§impl Clone for HelpDisplay
impl Clone for HelpDisplay
Source§fn clone(&self) -> HelpDisplay
fn clone(&self) -> HelpDisplay
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 HelpDisplay
impl RefUnwindSafe for HelpDisplay
impl Send for HelpDisplay
impl Sync for HelpDisplay
impl Unpin for HelpDisplay
impl UnsafeUnpin for HelpDisplay
impl UnwindSafe for HelpDisplay
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