pub struct NoteKindSpec {
pub kind: &'static str,
pub aliases: &'static [&'static str],
pub lifecycle: NoteLifecycleSpec,
}Expand description
Kind-level schema specification for a note kind.
Each pack-registered note kind may declare a NoteKindSpec to describe
its lifecycle semantics. The runtime collects these at boot time via
Pack::NOTE_KIND_SPECS for documentation, introspection, and future
enforcement.
Fields§
§kind: &'static strThe note kind string this spec governs (e.g. "task").
aliases: &'static [&'static str]Alternate names this kind accepts on the wire.
lifecycle: NoteLifecycleSpecLifecycle state machine for this kind.
Trait Implementations§
Source§impl Clone for NoteKindSpec
impl Clone for NoteKindSpec
Source§fn clone(&self) -> NoteKindSpec
fn clone(&self) -> NoteKindSpec
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 NoteKindSpec
impl Debug for NoteKindSpec
impl Eq for NoteKindSpec
Source§impl PartialEq for NoteKindSpec
impl PartialEq for NoteKindSpec
Source§fn eq(&self, other: &NoteKindSpec) -> bool
fn eq(&self, other: &NoteKindSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NoteKindSpec
Auto Trait Implementations§
impl Freeze for NoteKindSpec
impl RefUnwindSafe for NoteKindSpec
impl Send for NoteKindSpec
impl Sync for NoteKindSpec
impl Unpin for NoteKindSpec
impl UnsafeUnpin for NoteKindSpec
impl UnwindSafe for NoteKindSpec
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