pub struct SkillActivation {
pub active: bool,
pub clauses: Vec<(String, PredicateOutcome)>,
}Expand description
Activation state for a single skill, post-predicate-evaluation.
Skills without an applies_when: block resolve to Active with
an empty clauses vec.
Fields§
§active: boolWhether the skill should appear in prompts/list /
prompts/get.
clauses: Vec<(String, PredicateOutcome)>Per-clause evaluation outcomes, in declaration order. Empty
for skills without an applies_when: block.
Trait Implementations§
Source§impl Clone for SkillActivation
impl Clone for SkillActivation
Source§fn clone(&self) -> SkillActivation
fn clone(&self) -> SkillActivation
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 SkillActivation
impl Debug for SkillActivation
Source§impl Default for SkillActivation
impl Default for SkillActivation
Source§fn default() -> SkillActivation
fn default() -> SkillActivation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SkillActivation
impl RefUnwindSafe for SkillActivation
impl Send for SkillActivation
impl Sync for SkillActivation
impl Unpin for SkillActivation
impl UnsafeUnpin for SkillActivation
impl UnwindSafe for SkillActivation
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