pub struct ThemeSpacing {
pub indent: usize,
pub panel_padding: usize,
pub table_cell_padding: usize,
pub section_gap: usize,
pub item_gap: usize,
pub method_width: usize,
pub status_width: usize,
}Expand description
Spacing values for consistent layout across components.
All values are in character units for terminal output.
§Example
use fastapi_output::themes::ThemeSpacing;
let spacing = ThemeSpacing::default();
let indent = " ".repeat(spacing.indent);
println!("{}Indented content", indent);Fields§
§indent: usizeStandard indentation level (characters).
panel_padding: usizePadding inside panels/boxes (characters).
table_cell_padding: usizeCell padding in tables (characters).
section_gap: usizeGap between sections (blank lines).
item_gap: usizeGap between related items (blank lines).
method_width: usizeWidth of method column in route tables.
status_width: usizeWidth of status code column.
Implementations§
Source§impl ThemeSpacing
impl ThemeSpacing
Trait Implementations§
Source§impl Clone for ThemeSpacing
impl Clone for ThemeSpacing
Source§fn clone(&self) -> ThemeSpacing
fn clone(&self) -> ThemeSpacing
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 ThemeSpacing
impl Debug for ThemeSpacing
Source§impl Default for ThemeSpacing
impl Default for ThemeSpacing
Source§impl PartialEq for ThemeSpacing
impl PartialEq for ThemeSpacing
impl Copy for ThemeSpacing
impl Eq for ThemeSpacing
impl StructuralPartialEq for ThemeSpacing
Auto Trait Implementations§
impl Freeze for ThemeSpacing
impl RefUnwindSafe for ThemeSpacing
impl Send for ThemeSpacing
impl Sync for ThemeSpacing
impl Unpin for ThemeSpacing
impl UnsafeUnpin for ThemeSpacing
impl UnwindSafe for ThemeSpacing
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