pub struct CoreExtensionCapabilitiesBuilder { /* private fields */ }Expand description
Describes the core extension capabilities builder portion of a runtime package snapshot. Use it when package authors or tests need explicit package configuration; validation and activation happen in package/runtime coordinators.
Implementations§
Source§impl CoreExtensionCapabilitiesBuilder
impl CoreExtensionCapabilitiesBuilder
Sourcepub fn version(self, version: ExtensionVersion) -> Self
pub fn version(self, version: ExtensionVersion) -> Self
Returns an updated package::extension value with version applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn tool(self, name: impl Into<String>) -> Self
pub fn tool(self, name: impl Into<String>) -> Self
Returns an updated package::extension value with tool applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn action(
self,
action_id: ExtensionActionId,
action_kind: ExtensionActionKind,
requested_destination: DestinationRef,
) -> Self
pub fn action( self, action_id: ExtensionActionId, action_kind: ExtensionActionKind, requested_destination: DestinationRef, ) -> Self
Returns an updated package::extension value with action applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn build(self) -> Result<CoreExtensionCapabilities, AgentError>
pub fn build(self) -> Result<CoreExtensionCapabilities, AgentError>
Finishes builder validation and returns the configured value. This is data-only unless the surrounding builder explicitly documents adapter or store access.
Trait Implementations§
Source§impl Clone for CoreExtensionCapabilitiesBuilder
impl Clone for CoreExtensionCapabilitiesBuilder
Source§fn clone(&self) -> CoreExtensionCapabilitiesBuilder
fn clone(&self) -> CoreExtensionCapabilitiesBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more