Skip to main content

CommandContexts

Struct CommandContexts 

Source
pub struct CommandContexts<'a> { /* private fields */ }
Expand description

Transport envelope with one independently optional facet slot.

Implementations§

Source§

impl<'a> CommandContexts<'a>

Source

pub fn empty() -> Self

Source

pub fn into_parts(self) -> ContextParts<'a>

Source

pub fn with_permissions( self, value: &'a mut dyn CommandPermissionsContext, ) -> Self

Source

pub fn with_config_status( self, value: &'a mut dyn CommandConfigStatusContext, ) -> Self

Source

pub fn with_session(self, value: &'a mut dyn CommandSessionContext) -> Self

Source

pub fn with_model(self, value: &'a mut dyn CommandModelContext) -> Self

Source

pub fn with_cost(self, value: &'a mut dyn CommandCostContext) -> Self

Source

pub fn with_mode_policy( self, value: &'a mut dyn CommandModePolicyContext, ) -> Self

Source

pub fn with_system_prompt( self, value: &'a mut dyn CommandSystemPromptContext, ) -> Self

Source

pub fn with_skills(self, value: &'a mut dyn CommandSkillsContext) -> Self

Source

pub fn with_workspace(self, value: &'a mut dyn CommandWorkspaceContext) -> Self

Source

pub fn with_presentation( self, value: &'a mut dyn CommandPresentationContext, ) -> Self

Source

pub fn with_media(self, value: &'a mut dyn CommandMediaContext) -> Self

Source

pub fn with_memory(self, value: &'a mut dyn CommandMemoryContext) -> Self

Source

pub fn with_project(self, value: &'a mut dyn CommandProjectContext) -> Self

Source

pub fn with_skill_group( self, value: &'a mut dyn CommandSkillGroupContext, ) -> Self

Source

pub fn with_plugin(self, value: &'a mut dyn CommandPluginContext) -> Self

Source

pub fn with_lifecycle( self, value: &'a mut dyn CommandSessionLifecycleContext, ) -> Self

Source

pub fn with_control( self, value: &'a mut dyn CommandSessionControlContext, ) -> Self

Source

pub fn with_structcopy( self, value: &'a mut dyn CommandSessionStructcopyContext, ) -> Self

Source

pub fn with_export(self, value: &'a mut dyn CommandSessionExportContext) -> Self

Source

pub fn with_debug_receipts( self, value: &'a mut dyn CommandDebugReceiptsContext, ) -> Self

Source

pub fn with_debug_change( self, value: &'a mut dyn CommandDebugChangeContext, ) -> Self

Source

pub fn with_debug_history( self, value: &'a mut dyn CommandDebugHistoryContext, ) -> Self

Source

pub fn with_debug_diff(self, value: &'a mut dyn CommandDebugDiffContext) -> Self

Source

pub fn with_debug_undo(self, value: &'a mut dyn CommandDebugUndoContext) -> Self

Source

pub fn with_debug_diagnostics( self, value: &'a mut dyn CommandDebugDiagnosticsContext, ) -> Self

Trait Implementations§

Source§

impl Default for CommandContexts<'_>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for CommandContexts<'a>

§

impl<'a> !Send for CommandContexts<'a>

§

impl<'a> !Sync for CommandContexts<'a>

§

impl<'a> !UnwindSafe for CommandContexts<'a>

§

impl<'a> Freeze for CommandContexts<'a>

§

impl<'a> Unpin for CommandContexts<'a>

§

impl<'a> UnsafeUnpin for CommandContexts<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.