pub struct AssistantHarnessDescriptor {
pub name: String,
pub kind: String,
pub accounts: Vec<String>,
pub available: bool,
pub install_hint: Option<String>,
pub launch: String,
}Expand description
One harness this server can open an assistant session on.
The list IS the catalogue this build ships
(aion_integration_acp::catalogue) — an operator never types a command —
and each entry carries the two facts a picker needs beside the name: whether
this machine can actually run it, and what to install when it cannot.
Fields§
§name: StringThe catalogue id, which a create request selects by.
kind: StringThe adapter that runs it.
accounts: Vec<String>The declared login account names, in declaration order. Empty when the harness declares none, which is a complete answer: a session on it then names no account.
available: boolWhether Self::launch’s program resolves on THIS server’s PATH,
measured while this description was being built.
Never cached: an operator who installs Node.js and reloads the console must see the entry come alive without restarting the server, and a server that remembered a boot-time reading would be reporting a machine as it was rather than as it is.
install_hint: Option<String>The catalogue’s own sentence naming what to install, or None when the
harness is available. Present exactly when Self::available is false,
so a client renders a hint or nothing and never both.
launch: StringThe exact line this server would run for it. DISPLAY only: it is shown so an operator can see what a session starts, and it is not something any request may set.
Trait Implementations§
Source§impl Clone for AssistantHarnessDescriptor
impl Clone for AssistantHarnessDescriptor
Source§fn clone(&self) -> AssistantHarnessDescriptor
fn clone(&self) -> AssistantHarnessDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AssistantHarnessDescriptor
impl Debug for AssistantHarnessDescriptor
impl Eq for AssistantHarnessDescriptor
impl StructuralPartialEq for AssistantHarnessDescriptor
Auto Trait Implementations§
impl Freeze for AssistantHarnessDescriptor
impl RefUnwindSafe for AssistantHarnessDescriptor
impl Send for AssistantHarnessDescriptor
impl Sync for AssistantHarnessDescriptor
impl Unpin for AssistantHarnessDescriptor
impl UnsafeUnpin for AssistantHarnessDescriptor
impl UnwindSafe for AssistantHarnessDescriptor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<M> EmbeddedConversationMessage for Mwhere
M: Serialize,
impl<M> EmbeddedConversationMessage for Mwhere
M: Serialize,
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request