pub struct BaseContext {
pub intent_index: usize,
pub current_state: Option<String>,
pub evaluated_guards: HashMap<String, bool>,
pub verbosity: Verbosity,
}Expand description
Modality-agnostic rendering context shared by all Renderer implementations.
Visual-only fields (render mode, theme templates) live in VisualContext
inside ferro-json-ui.
Fields§
§intent_index: usizeWhich intent to render (0 = primary). Index into the intents slice.
current_state: Option<String>Current workflow state name (relevant for Process/Track intents).
evaluated_guards: HashMap<String, bool>Guard-name → evaluated result. Absent key = render the action
(guard not-yet-evaluated / unconstrained); only an explicit false
filters an action out. Keyed by the strings in ActionDef::preconditions
/ GuardDef::name. Default = empty map = render everything. (D-03/D-04)
verbosity: VerbosityText detail level. Full (default) preserves current full-render
behavior; Brief is consumed by non-visual renderers. (D-05)
Trait Implementations§
Source§impl Clone for BaseContext
impl Clone for BaseContext
Source§fn clone(&self) -> BaseContext
fn clone(&self) -> BaseContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BaseContext
impl Debug for BaseContext
Source§impl Default for BaseContext
impl Default for BaseContext
Source§fn default() -> BaseContext
fn default() -> BaseContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BaseContext
impl RefUnwindSafe for BaseContext
impl Send for BaseContext
impl Sync for BaseContext
impl Unpin for BaseContext
impl UnsafeUnpin for BaseContext
impl UnwindSafe for BaseContext
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