pub struct LifecycleClaim {
pub plugin: String,
pub command: String,
pub settings_category: Option<String>,
pub display_name: String,
pub importance: i32,
}Expand description
A plugin’s claim on a top-level lifecycle command namespace, derived
from provides.sidecar.lifecycle in plugin.json. Phase 8 slice 8A.
When a plugin declares a lifecycle claim, the command registry
auto-registers /<command> toggle and /<command> status (and any
future lifecycle verbs) so the plugin’s own UX namespace —
e.g. a plugin-owned command — drives sidecar lifecycle instead
of the modality-laden /sidecar builtin.
Multiple plugins may register lifecycle claims; in Phase 8 slice 8A
the host still hosts at most one active sidecar so all claims share
a single backing App.sidecar slot. Slice 8B widens this.
Fields§
§plugin: StringPlugin (manifest) name that owns this claim.
command: StringTop-level command word the plugin claims.
settings_category: Option<String>Optional settings-category id that the host should inject per-plugin lifecycle keys (e.g. toggle keybind) into.
display_name: StringHuman-readable label for pills, error messages, status lines.
importance: i32Sort key for pill ordering (higher = earlier). Range -100..=100,
already clamped during manifest deserialisation.
Trait Implementations§
Source§impl Clone for LifecycleClaim
impl Clone for LifecycleClaim
Source§fn clone(&self) -> LifecycleClaim
fn clone(&self) -> LifecycleClaim
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LifecycleClaim
impl Debug for LifecycleClaim
Source§impl PartialEq for LifecycleClaim
impl PartialEq for LifecycleClaim
impl Eq for LifecycleClaim
impl StructuralPartialEq for LifecycleClaim
Auto Trait Implementations§
impl Freeze for LifecycleClaim
impl RefUnwindSafe for LifecycleClaim
impl Send for LifecycleClaim
impl Sync for LifecycleClaim
impl Unpin for LifecycleClaim
impl UnsafeUnpin for LifecycleClaim
impl UnwindSafe for LifecycleClaim
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.