pub struct DecisionCard<'a> { /* private fields */ }Expand description
A decision card widget showing progressive-disclosure transparency.
Renders a bordered card with traffic-light badge, explanation,
evidence terms, and/or full Bayesian details depending on the
disclosure level of the provided Disclosure.
Implementations§
Source§impl<'a> DecisionCard<'a>
impl<'a> DecisionCard<'a>
Sourcepub fn new(disclosure: &'a Disclosure) -> Self
pub fn new(disclosure: &'a Disclosure) -> Self
Create a new decision card from a disclosure snapshot.
Sourcepub fn border_type(self, border_type: BorderType) -> Self
pub fn border_type(self, border_type: BorderType) -> Self
Set the border style (Square, Rounded, Double, Heavy, Ascii).
Sourcepub fn style(self, style: Style) -> Self
pub fn style(self, style: Style) -> Self
Set the base background/foreground style for the card area.
Sourcepub fn title_style(self, style: Style) -> Self
pub fn title_style(self, style: Style) -> Self
Set the style for the title row.
Sourcepub fn min_height(&self) -> u16
pub fn min_height(&self) -> u16
Minimum height needed to render the card at the current disclosure level.
Trait Implementations§
Source§impl<'a> Clone for DecisionCard<'a>
impl<'a> Clone for DecisionCard<'a>
Source§fn clone(&self) -> DecisionCard<'a>
fn clone(&self) -> DecisionCard<'a>
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<'a> Debug for DecisionCard<'a>
impl<'a> Debug for DecisionCard<'a>
Auto Trait Implementations§
impl<'a> Freeze for DecisionCard<'a>
impl<'a> RefUnwindSafe for DecisionCard<'a>
impl<'a> Send for DecisionCard<'a>
impl<'a> Sync for DecisionCard<'a>
impl<'a> Unpin for DecisionCard<'a>
impl<'a> UnsafeUnpin for DecisionCard<'a>
impl<'a> UnwindSafe for DecisionCard<'a>
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