pub struct CommandCapabilities(/* private fields */);Expand description
Exact host capabilities exposed to one contextual command handler.
The set lives in the external contract crate so command registrations can
declare least authority without naming the TUI host. The dispatcher uses
the declaration to populate only those slots in CommandContexts.
Implementations§
Source§impl CommandCapabilities
impl CommandCapabilities
pub const NONE: Self
pub const SESSION: Self
pub const MODEL: Self
pub const COST: Self
pub const MODE_POLICY: Self
pub const SYSTEM_PROMPT: Self
pub const SKILLS: Self
pub const WORKSPACE: Self
pub const PRESENTATION: Self
pub const MEDIA: Self
Sourcepub const SKILL_GROUP: Self
pub const SKILL_GROUP: Self
Skills-group host data (FEAT-022 D1).
Sourcepub const PLUGIN: Self
pub const PLUGIN: Self
Plugin-group host data (FEAT-020 D1), appended after current main capabilities.
pub const fn union(self, other: Self) -> Self
pub const fn contains(self, capability: Self) -> bool
pub const fn is_empty(self) -> bool
Trait Implementations§
Source§impl BitOr for CommandCapabilities
impl BitOr for CommandCapabilities
Source§impl Clone for CommandCapabilities
impl Clone for CommandCapabilities
Source§fn clone(&self) -> CommandCapabilities
fn clone(&self) -> CommandCapabilities
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 moreimpl Copy for CommandCapabilities
Source§impl Debug for CommandCapabilities
impl Debug for CommandCapabilities
Source§impl Default for CommandCapabilities
impl Default for CommandCapabilities
Source§fn default() -> CommandCapabilities
fn default() -> CommandCapabilities
Returns the “default value” for a type. Read more
impl Eq for CommandCapabilities
Source§impl PartialEq for CommandCapabilities
impl PartialEq for CommandCapabilities
impl StructuralPartialEq for CommandCapabilities
Auto Trait Implementations§
impl Freeze for CommandCapabilities
impl RefUnwindSafe for CommandCapabilities
impl Send for CommandCapabilities
impl Sync for CommandCapabilities
impl Unpin for CommandCapabilities
impl UnsafeUnpin for CommandCapabilities
impl UnwindSafe for CommandCapabilities
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
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
Compare self to
key and return true if they are equal.