pub struct AgentSpec {
pub sessions: bool,
pub claude_compatible: bool,
pub login_env: &'static [&'static str],
pub login_status: Option<&'static [&'static str]>,
pub xdg_auth_dir: Option<&'static str>,
/* private fields */
}Expand description
One agent name and the facts that belong to the name
Fields§
§sessions: boolThe CLI takes --session-id for a new session and --resume to continue it
claude_compatible: boolIt runs Claude Code’s CLI, and so honours a tool allowlist
login_env: &'static [&'static str]Env vars that hold the login, so a set one counts as signed in
login_status: Option<&'static [&'static str]>Arguments of a status command that exits without opening a session
xdg_auth_dir: Option<&'static str>A folder under $XDG_DATA_HOME and $XDG_CONFIG_HOME that also holds an auth.json
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for AgentSpec
impl Freeze for AgentSpec
impl Move for AgentSpec
impl RefUnwindSafe for AgentSpec
impl Send for AgentSpec
impl Sync for AgentSpec
impl Unpin for AgentSpec
impl UnsafeUnpin for AgentSpecwhere
&'static str: UnsafeUnpin,
&'static [&'static str]: UnsafeUnpin,
&'static [&'static [&'static str]]: UnsafeUnpin,
impl UnwindSafe for AgentSpecwhere
&'static str: UnwindSafe,
&'static [&'static str]: UnwindSafe,
&'static [&'static [&'static str]]: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more