#[non_exhaustive]pub struct ReportConfig {
pub banner_width: usize,
pub agent_titles: BTreeMap<AgentName, (String, String)>,
}Expand description
Configuration for the report formatter.
Controls banner width and agent display names/titles.
§ASCII Constraint
The fixed-width banner guarantee (banner_width bytes per line) assumes
all displayed content is ASCII. Agent titles, verdict labels, and consensus
strings are ASCII by default. If agent_titles contains multi-byte UTF-8
characters, banner lines will have correct byte length but may appear
visually misaligned in terminals because multi-byte characters can occupy
more than one display column.
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.Total width of the ASCII banner in bytes, including border characters (default: 52). Equals character count for ASCII content.
agent_titles: BTreeMap<AgentName, (String, String)>Maps agent name to (display_name, title) for report display. Values should be ASCII for correct banner alignment.
Trait Implementations§
Source§impl Clone for ReportConfig
impl Clone for ReportConfig
Source§fn clone(&self) -> ReportConfig
fn clone(&self) -> ReportConfig
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 ReportConfig
impl Debug for ReportConfig
Auto Trait Implementations§
impl Freeze for ReportConfig
impl RefUnwindSafe for ReportConfig
impl Send for ReportConfig
impl Sync for ReportConfig
impl Unpin for ReportConfig
impl UnsafeUnpin for ReportConfig
impl UnwindSafe for ReportConfig
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