pub struct Runtime {
pub binary: String,
pub supports_mcp: bool,
pub session_resume: Option<String>,
pub default_model: Option<String>,
pub env: BTreeMap<String, String>,
pub rate_limit_patterns: Vec<RateLimitPattern>,
}Fields§
§binary: StringPath / name of the CLI binary (resolved on $PATH by the wrapper).
supports_mcp: bool§session_resume: Option<String>Session-resume hint kept as parsed metadata for back-compat —
no Rust caller reads this field today. The actual resume
strategy is hard-coded per-runtime in agent-wrapper.sh:
claude-code uses deterministic UUIDv5 --session-id (T-118),
codex resumes via --profile, gemini has no equivalent. Kept
to avoid breaking any operator-authored runtimes/*.yaml
override that still names the field.
default_model: Option<String>§env: BTreeMap<String, String>§rate_limit_patterns: Vec<RateLimitPattern>Patterns that, if matched in the runtime’s stdout/stderr, indicate a
rate-limit hit. teamctl rl-watch consumes these.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Runtime
impl<'de> Deserialize<'de> for Runtime
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
impl UnwindSafe for Runtime
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