pub struct SubagentRoleOverlay {
pub base: Option<String>,
pub enabled: Option<bool>,
pub description: Option<String>,
pub workspace_access: Option<SubagentWorkspaceAccess>,
pub model_override: Option<SubagentModelOverride>,
pub reasoning_effort: Option<ReasoningEffort>,
pub max_model_turns: Option<u32>,
pub timeout_secs: Option<u64>,
pub max_total_tokens: Option<u64>,
pub allowed_tools: Option<Vec<ToolName>>,
pub instructions: Option<String>,
}Expand description
User- or project-supplied overlay for defining or customizing a role.
Fields§
§base: Option<String>Optional base role to inherit defaults from (explore, coder, review).
enabled: Option<bool>Optional enabled toggle.
description: Option<String>Optional one-line description override.
workspace_access: Option<SubagentWorkspaceAccess>Optional workspace access mode override.
model_override: Option<SubagentModelOverride>Optional provider/model override.
reasoning_effort: Option<ReasoningEffort>Optional reasoning-effort override.
max_model_turns: Option<u32>Optional default turn budget override.
timeout_secs: Option<u64>Optional default wall-clock timeout override.
max_total_tokens: Option<u64>Optional token circuit breaker override.
allowed_tools: Option<Vec<ToolName>>Optional tool allowlist override.
instructions: Option<String>Optional custom instructions (already combined with any loaded prompt_file).
Trait Implementations§
Source§impl Clone for SubagentRoleOverlay
impl Clone for SubagentRoleOverlay
Auto Trait Implementations§
impl !RefUnwindSafe for SubagentRoleOverlay
impl !UnwindSafe for SubagentRoleOverlay
impl Forget for SubagentRoleOverlay
impl Freeze for SubagentRoleOverlaywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<dyn ModelProvider> is !null: Freeze,
PhantomData<ArcInner<dyn ModelProvider>>: Freeze,
PhantomData<ToolName>: Freeze,
impl Move for SubagentRoleOverlay
impl Send for SubagentRoleOverlay
impl Sync for SubagentRoleOverlay
impl Unpin for SubagentRoleOverlay
impl UnsafeUnpin for SubagentRoleOverlaywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<dyn ModelProvider> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ModelProvider>>: UnsafeUnpin,
PhantomData<ToolName>: UnsafeUnpin,
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