pub struct CompatibilityMatrix {
pub spec_version: &'static str,
pub adapter: &'static str,
pub events: &'static [CompatibilityEntry],
}Expand description
Static adapter compatibility data.
Fields§
§spec_version: &'static strTuff hook spec version this matrix targets.
adapter: &'static strAdapter id, such as open-agents or claude.
events: &'static [CompatibilityEntry]Matrix rows.
Implementations§
Source§impl CompatibilityMatrix
impl CompatibilityMatrix
Sourcepub fn find_event(&self, raw_event: &str) -> Option<&CompatibilityEntry>
pub fn find_event(&self, raw_event: &str) -> Option<&CompatibilityEntry>
Finds the compatibility row for a manifest event name or alias.
Sourcepub fn supported_native_events(&self) -> Vec<&'static str>
pub fn supported_native_events(&self) -> Vec<&'static str>
Returns supported native event names, each once, in matrix order.
Two canonical events can render to the same native event (Cursor
maps both before_finish and stop to stop), so the list is
de-duplicated.
Sourcepub fn accepted_events_summary(&self) -> String
pub fn accepted_events_summary(&self) -> String
The event names a manifest may use for this adapter, for messages: each supported canonical event, then any alias its row accepts, then the native event it renders to when that is a different name.
A refusal used to list only native names, which read as though a manifest could write them; a manifest names the canonical event, and a native name works only where the matrix lists it as an alias.
Trait Implementations§
Source§impl Clone for CompatibilityMatrix
impl Clone for CompatibilityMatrix
Source§fn clone(&self) -> CompatibilityMatrix
fn clone(&self) -> CompatibilityMatrix
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more