Skip to main content

ContextParts

Struct ContextParts 

Source
pub struct ContextParts<'a> {
Show 25 fields pub session: Option<&'a mut dyn CommandSessionContext>, pub model: Option<&'a mut dyn CommandModelContext>, pub cost: Option<&'a mut dyn CommandCostContext>, pub mode_policy: Option<&'a mut dyn CommandModePolicyContext>, pub system_prompt: Option<&'a mut dyn CommandSystemPromptContext>, pub skills: Option<&'a mut dyn CommandSkillsContext>, pub workspace: Option<&'a mut dyn CommandWorkspaceContext>, pub presentation: Option<&'a mut dyn CommandPresentationContext>, pub media: Option<&'a mut dyn CommandMediaContext>, pub memory: Option<&'a mut dyn CommandMemoryContext>, pub project: Option<&'a mut dyn CommandProjectContext>, pub skill_group: Option<&'a mut dyn CommandSkillGroupContext>, pub plugin: Option<&'a mut dyn CommandPluginContext>, pub lifecycle: Option<&'a mut dyn CommandSessionLifecycleContext>, pub control: Option<&'a mut dyn CommandSessionControlContext>, pub export: Option<&'a mut dyn CommandSessionExportContext>, pub structcopy: Option<&'a mut dyn CommandSessionStructcopyContext>, pub debug_receipts: Option<&'a mut dyn CommandDebugReceiptsContext>, pub debug_change: Option<&'a mut dyn CommandDebugChangeContext>, pub debug_history: Option<&'a mut dyn CommandDebugHistoryContext>, pub debug_diff: Option<&'a mut dyn CommandDebugDiffContext>, pub debug_undo: Option<&'a mut dyn CommandDebugUndoContext>, pub debug_diagnostics: Option<&'a mut dyn CommandDebugDiagnosticsContext>, pub permissions: Option<&'a mut dyn CommandPermissionsContext>, pub config_status: Option<&'a mut dyn CommandConfigStatusContext>,
}
Expand description

Consumed envelope used when one handler needs several independent facets.

Fields§

§session: Option<&'a mut dyn CommandSessionContext>§model: Option<&'a mut dyn CommandModelContext>§cost: Option<&'a mut dyn CommandCostContext>§mode_policy: Option<&'a mut dyn CommandModePolicyContext>§system_prompt: Option<&'a mut dyn CommandSystemPromptContext>§skills: Option<&'a mut dyn CommandSkillsContext>§workspace: Option<&'a mut dyn CommandWorkspaceContext>§presentation: Option<&'a mut dyn CommandPresentationContext>§media: Option<&'a mut dyn CommandMediaContext>§memory: Option<&'a mut dyn CommandMemoryContext>§project: Option<&'a mut dyn CommandProjectContext>§skill_group: Option<&'a mut dyn CommandSkillGroupContext>§plugin: Option<&'a mut dyn CommandPluginContext>§lifecycle: Option<&'a mut dyn CommandSessionLifecycleContext>§control: Option<&'a mut dyn CommandSessionControlContext>§export: Option<&'a mut dyn CommandSessionExportContext>§structcopy: Option<&'a mut dyn CommandSessionStructcopyContext>§debug_receipts: Option<&'a mut dyn CommandDebugReceiptsContext>§debug_change: Option<&'a mut dyn CommandDebugChangeContext>§debug_history: Option<&'a mut dyn CommandDebugHistoryContext>§debug_diff: Option<&'a mut dyn CommandDebugDiffContext>§debug_undo: Option<&'a mut dyn CommandDebugUndoContext>§debug_diagnostics: Option<&'a mut dyn CommandDebugDiagnosticsContext>§permissions: Option<&'a mut dyn CommandPermissionsContext>§config_status: Option<&'a mut dyn CommandConfigStatusContext>

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

impl<'a> Freeze for ContextParts<'a>

§

impl<'a> Unpin for ContextParts<'a>

§

impl<'a> UnsafeUnpin for ContextParts<'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.