pub struct ExpandedConfig {
pub record_separator: String,
pub key_value_separator: String,
pub show_record_numbers: bool,
pub colorize_keys: bool,
pub key_color: String,
pub padding_side: PaddingSide,
}Expand description
Formatter parameters for expanded (vertical record) output
Defines customizable parameters for vertical key-value display including record separators, key-value separators, and color options.
Fields§
§record_separator: StringRecord separator line (empty string disables record headers)
key_value_separator: StringKey-value separator
show_record_numbers: boolShow record numbers in separator
colorize_keys: boolEnable ANSI color for keys
key_color: StringANSI color code for keys (default: gray)
padding_side: PaddingSideWhere to place padding for alignment
Implementations§
Source§impl ExpandedConfig
impl ExpandedConfig
Sourcepub fn postgres_style() -> Self
pub fn postgres_style() -> Self
Create config for PostgreSQL \x style (default)
Sourcepub fn property_style() -> Self
pub fn property_style() -> Self
Create config for property list style Default: gray colored keys, colon separator, no record headers
Sourcepub fn record_separator(self, separator: String) -> Self
pub fn record_separator(self, separator: String) -> Self
Set record separator format string
Sourcepub fn key_value_separator(self, separator: String) -> Self
pub fn key_value_separator(self, separator: String) -> Self
Set key-value separator
Sourcepub fn show_record_numbers(self, show: bool) -> Self
pub fn show_record_numbers(self, show: bool) -> Self
Set whether to show record numbers
Sourcepub fn colorize_keys(self, enable: bool) -> Self
pub fn colorize_keys(self, enable: bool) -> Self
Enable or disable colored keys
Sourcepub fn padding_side(self, side: PaddingSide) -> Self
pub fn padding_side(self, side: PaddingSide) -> Self
Set padding side for alignment
Trait Implementations§
Source§impl Clone for ExpandedConfig
impl Clone for ExpandedConfig
Source§fn clone(&self) -> ExpandedConfig
fn clone(&self) -> ExpandedConfig
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 ExpandedConfig
impl Debug for ExpandedConfig
Auto Trait Implementations§
impl Freeze for ExpandedConfig
impl RefUnwindSafe for ExpandedConfig
impl Send for ExpandedConfig
impl Sync for ExpandedConfig
impl Unpin for ExpandedConfig
impl UnwindSafe for ExpandedConfig
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