pub struct AgentCliInfo {
pub executable_name: &'static str,
pub kind: AgentKind,
pub version: AgentCliVersion,
}Expand description
One locally runnable agent CLI and the installed version refreshed at startup.
Fields§
§executable_name: &'static strExecutable name used to launch the provider CLI.
kind: AgentKindAgent provider family backed by the executable.
version: AgentCliVersionCurrent automatic update and version probe state for this executable.
Implementations§
Source§impl AgentCliInfo
impl AgentCliInfo
Sourcepub fn new(kind: AgentKind, version: Option<String>) -> Self
pub fn new(kind: AgentKind, version: Option<String>) -> Self
Creates one CLI availability row for a provider and optional version.
Sourcepub fn loading(kind: AgentKind) -> Self
pub fn loading(kind: AgentKind) -> Self
Creates one CLI availability row whose update/version refresh is still loading.
Sourcepub fn from_kinds(agent_kinds: &[AgentKind]) -> Vec<Self>
pub fn from_kinds(agent_kinds: &[AgentKind]) -> Vec<Self>
Builds unknown-version CLI rows for an existing provider availability list.
Sourcepub fn loading_from_kinds(agent_kinds: &[AgentKind]) -> Vec<Self>
pub fn loading_from_kinds(agent_kinds: &[AgentKind]) -> Vec<Self>
Builds loading CLI rows for an existing provider availability list while the background update/version refresh is running.
Trait Implementations§
Source§impl Clone for AgentCliInfo
impl Clone for AgentCliInfo
Source§fn clone(&self) -> AgentCliInfo
fn clone(&self) -> AgentCliInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentCliInfo
impl Debug for AgentCliInfo
impl Eq for AgentCliInfo
Source§impl PartialEq for AgentCliInfo
impl PartialEq for AgentCliInfo
Source§fn eq(&self, other: &AgentCliInfo) -> bool
fn eq(&self, other: &AgentCliInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AgentCliInfo
Auto Trait Implementations§
impl Freeze for AgentCliInfo
impl RefUnwindSafe for AgentCliInfo
impl Send for AgentCliInfo
impl Sync for AgentCliInfo
impl Unpin for AgentCliInfo
impl UnsafeUnpin for AgentCliInfo
impl UnwindSafe for AgentCliInfo
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.