Skip to main content

oak_pretty_print/state/
mod.rs

1use alloc::string::String;
2use std::collections::HashMap;
3
4/// Default format state implementation
5///
6/// This struct provides a default implementation of the format state.
7#[derive(Debug, Clone, Default)]
8pub struct DefaultFormatState {
9    /// Local configuration overrides
10    pub local_config: HashMap<String, serde_json::Value>,
11    /// Custom state values
12    pub custom_state: HashMap<String, serde_json::Value>,
13    /// Current indentation level
14    pub indent_level: usize,
15    /// Whether to force single line formatting
16    pub force_single_line: bool,
17    /// Whether to align elements
18    pub align_elements: bool,
19}