pub struct CompatibilityEntry {
pub event: HookEvent,
pub native_event: Option<&'static str>,
pub aliases: &'static [&'static str],
pub coverage: CoverageLevel,
pub scope: &'static [&'static str],
pub caveat: Option<&'static str>,
pub source: Option<&'static str>,
pub since_harness_version: Option<&'static str>,
pub until_harness_version: Option<&'static str>,
}Expand description
Compatibility for one canonical event on one adapter.
Fields§
§event: HookEventCanonical Tuff hook event.
native_event: Option<&'static str>Native harness event name emitted by the adapter, when supported.
aliases: &'static [&'static str]Legacy or native names accepted as aliases in Tuff manifests.
coverage: CoverageLevelSupport level for this event.
scope: &'static [&'static str]Scope labels that explain partial coverage.
caveat: Option<&'static str>Adapter or harness caveat, if any.
source: Option<&'static str>Source note or URL for the compatibility row.
since_harness_version: Option<&'static str>First harness version known to have this behavior.
until_harness_version: Option<&'static str>Last harness version known to have this behavior.
Implementations§
Source§impl CompatibilityEntry
impl CompatibilityEntry
Sourcepub fn matches_name(&self, raw_event: &str) -> bool
pub fn matches_name(&self, raw_event: &str) -> bool
Returns true when this row matches a manifest event name.
Sourcepub fn native_event_name(&self) -> Option<&'static str>
pub fn native_event_name(&self) -> Option<&'static str>
Returns the native event to emit when this row is supported.
Trait Implementations§
Source§impl Clone for CompatibilityEntry
impl Clone for CompatibilityEntry
Source§impl Debug for CompatibilityEntry
impl Debug for CompatibilityEntry
impl Eq for CompatibilityEntry
Source§impl PartialEq for CompatibilityEntry
impl PartialEq for CompatibilityEntry
Source§impl Serialize for CompatibilityEntry
impl Serialize for CompatibilityEntry
impl StructuralPartialEq for CompatibilityEntry
Auto Trait Implementations§
impl Freeze for CompatibilityEntry
impl RefUnwindSafe for CompatibilityEntry
impl Send for CompatibilityEntry
impl Sync for CompatibilityEntry
impl Unpin for CompatibilityEntry
impl UnsafeUnpin for CompatibilityEntry
impl UnwindSafe for CompatibilityEntry
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