#[non_exhaustive]pub struct FormatterConfig {
pub max_width: usize,
pub colorize: bool,
pub truncate: usize,
pub limit: usize,
}Expand description
Configuration for formatters
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_width: usizeMaximum width for table output (0 = no limit)
colorize: boolEnable colored output where supported
truncate: usizeTruncate long fields to this length (0 = no truncation)
limit: usizeNumber of entries to include (0 = all)
Trait Implementations§
Source§impl Clone for FormatterConfig
impl Clone for FormatterConfig
Source§fn clone(&self) -> FormatterConfig
fn clone(&self) -> FormatterConfig
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 moreSource§impl Debug for FormatterConfig
impl Debug for FormatterConfig
Source§impl Default for FormatterConfig
impl Default for FormatterConfig
Source§fn default() -> FormatterConfig
fn default() -> FormatterConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FormatterConfig
impl RefUnwindSafe for FormatterConfig
impl Send for FormatterConfig
impl Sync for FormatterConfig
impl Unpin for FormatterConfig
impl UnsafeUnpin for FormatterConfig
impl UnwindSafe for FormatterConfig
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