pub struct FormatConfig {
pub amount_column: usize,
pub indent: String,
pub meta_indent: String,
}Expand description
Formatter configuration.
Fields§
§amount_column: usizeColumn to align amounts to (default: 60).
indent: StringIndentation for postings.
meta_indent: StringIndentation for metadata.
Implementations§
Source§impl FormatConfig
impl FormatConfig
Sourcepub fn with_column(column: usize) -> Self
pub fn with_column(column: usize) -> Self
Create a new config with the specified amount column.
Sourcepub fn with_indent(indent_width: usize) -> Self
pub fn with_indent(indent_width: usize) -> Self
Create a new config with the specified indent width.
Trait Implementations§
Source§impl Clone for FormatConfig
impl Clone for FormatConfig
Source§fn clone(&self) -> FormatConfig
fn clone(&self) -> FormatConfig
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 FormatConfig
impl Debug for FormatConfig
Auto Trait Implementations§
impl Freeze for FormatConfig
impl RefUnwindSafe for FormatConfig
impl Send for FormatConfig
impl Sync for FormatConfig
impl Unpin for FormatConfig
impl UnwindSafe for FormatConfig
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