pub struct ResolvedAssistantConfig {
pub harnesses: Vec<ResolvedAssistantHarness>,
}Expand description
The [assistant] section, validated.
Default is the stock server: no accounts declared anywhere. It is not a
dark form and there is no enabled flag — whether a session can be opened is
a question about the STORE and about which catalogue harness the operator
picked, both answered where those facts are, not by a config field.
Fields§
§harnesses: Vec<ResolvedAssistantHarness>The harnesses that declare accounts, in declaration order. A catalogue harness absent from this list is still offered; it simply has none.
Implementations§
Source§impl ResolvedAssistantConfig
impl ResolvedAssistantConfig
Sourcepub fn harness(&self, name: &str) -> Option<&ResolvedAssistantHarness>
pub fn harness(&self, name: &str) -> Option<&ResolvedAssistantHarness>
The accounts declared for catalogue harness name, or None when it
declares none.
Sourcepub fn account_names(&self, harness: &str) -> Vec<String>
pub fn account_names(&self, harness: &str) -> Vec<String>
The account names declared for harness, in declaration order — what
the descriptor publishes. Empty when none is declared, which is the
stock answer.
Trait Implementations§
Source§impl Clone for ResolvedAssistantConfig
impl Clone for ResolvedAssistantConfig
Source§fn clone(&self) -> ResolvedAssistantConfig
fn clone(&self) -> ResolvedAssistantConfig
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 ResolvedAssistantConfig
impl Debug for ResolvedAssistantConfig
Source§impl Default for ResolvedAssistantConfig
impl Default for ResolvedAssistantConfig
Source§fn default() -> ResolvedAssistantConfig
fn default() -> ResolvedAssistantConfig
Returns the “default value” for a type. Read more
impl Eq for ResolvedAssistantConfig
Source§impl PartialEq for ResolvedAssistantConfig
impl PartialEq for ResolvedAssistantConfig
impl StructuralPartialEq for ResolvedAssistantConfig
Auto Trait Implementations§
impl Freeze for ResolvedAssistantConfig
impl RefUnwindSafe for ResolvedAssistantConfig
impl Send for ResolvedAssistantConfig
impl Sync for ResolvedAssistantConfig
impl Unpin for ResolvedAssistantConfig
impl UnsafeUnpin for ResolvedAssistantConfig
impl UnwindSafe for ResolvedAssistantConfig
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
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<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<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>
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.
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>
Wrap the input message
T in a tonic::Request