pub struct AppliesWhen {
pub graph_has_node_type: Option<Vec<String>>,
pub graph_has_property: Option<GraphPropertyCheck>,
pub tool_registered: Option<String>,
pub extension_enabled: Option<String>,
}Expand description
The parsed shape of a SKILL.md’s applies_when: block. Each field
is one predicate; None means “this predicate is not applied”.
All populated fields are ANDed.
Adding a new predicate requires extending this struct and the
matching arm in [Registry::evaluate_clause]. The bounded-set
design is intentional — operators get type-checked semantics
instead of an open-ended DSL.
Fields§
§graph_has_node_type: Option<Vec<String>>Active when the running graph has any of the listed node
types in its schema. Domain predicate — evaluated via the
consumer’s SkillPredicateEvaluator.
graph_has_property: Option<GraphPropertyCheck>Active when the running graph has the named property on the
named node type. Domain predicate — evaluated via the
consumer’s SkillPredicateEvaluator.
tool_registered: Option<String>Active when the named tool is in the registered catalogue
at boot. Framework-internal — dispatched against
server.tool_router without consulting any evaluator.
extension_enabled: Option<String>Active when the manifest’s extensions: block has the named
key set to a truthy value (not absent, not null, not false).
Framework-internal — dispatched against manifest.extensions.
Trait Implementations§
Source§impl Clone for AppliesWhen
impl Clone for AppliesWhen
Source§fn clone(&self) -> AppliesWhen
fn clone(&self) -> AppliesWhen
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AppliesWhen
impl Debug for AppliesWhen
Source§impl Default for AppliesWhen
impl Default for AppliesWhen
Source§fn default() -> AppliesWhen
fn default() -> AppliesWhen
Source§impl<'de> Deserialize<'de> for AppliesWhen
impl<'de> Deserialize<'de> for AppliesWhen
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for AppliesWhen
impl PartialEq for AppliesWhen
Source§fn eq(&self, other: &AppliesWhen) -> bool
fn eq(&self, other: &AppliesWhen) -> bool
self and other values to be equal, and is used by ==.impl Eq for AppliesWhen
impl StructuralPartialEq for AppliesWhen
Auto Trait Implementations§
impl Freeze for AppliesWhen
impl RefUnwindSafe for AppliesWhen
impl Send for AppliesWhen
impl Sync for AppliesWhen
impl Unpin for AppliesWhen
impl UnsafeUnpin for AppliesWhen
impl UnwindSafe for AppliesWhen
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.