pub struct CapabilityProjection { /* private fields */ }Expand description
Immutable pairing of one identity set with exactly one typed runtime value for every descriptor.
Implementations§
Source§impl CapabilityProjection
impl CapabilityProjection
pub fn new( set: Arc<CapabilitySet>, values: impl IntoIterator<Item = (CapabilityId, CapabilityValue)>, ) -> Result<Arc<Self>, CapabilityProjectionError>
pub fn set(&self) -> &CapabilitySet
pub fn readiness_plan(&self) -> &CapabilityReadinessPlan
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, id: &CapabilityId) -> bool
pub fn iter( &self, ) -> impl ExactSizeIterator<Item = (&CapabilityId, &CapabilityValue)>
pub fn tool(&self, id: &CapabilityId) -> Option<&dyn Tool>
pub fn skill(&self, id: &CapabilityId) -> Option<&Skill>
pub fn agent(&self, id: &CapabilityId) -> Option<&AgentDefinition>
pub fn command(&self, id: &CapabilityId) -> Option<&dyn SlashCommand>
pub fn hook(&self, id: &CapabilityId) -> Option<&HookBinding>
pub fn mcp(&self, id: &CapabilityId) -> Option<&McpBinding>
pub fn flow(&self, id: &CapabilityId) -> Option<&FlowBinding>
pub fn knowledge(&self, id: &CapabilityId) -> Option<&CognitiveContextSession>
pub fn knowledge_surface( &self, id: &CapabilityId, ) -> Option<&KnowledgeSurfaceBinding>
pub fn ui(&self, id: &CapabilityId) -> Option<&UiBinding>
pub fn context(&self, id: &CapabilityId) -> Option<&dyn ContextProvider>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CapabilityProjection
impl !UnwindSafe for CapabilityProjection
impl Freeze for CapabilityProjection
impl Send for CapabilityProjection
impl Sync for CapabilityProjection
impl Unpin for CapabilityProjection
impl UnsafeUnpin for CapabilityProjection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more