pub struct AssistantConfig {
pub harnesses: Vec<AssistantHarnessConfig>,
}Expand description
The [assistant] section — entirely optional.
Default is the empty section, which is what a server with no
[assistant] at all gets, and it is a COMPLETE configuration: every
catalogue harness is offered, none of them declares an account, and sessions
are served. Absence is not darkness here.
deny_unknown_fields is what refuses a retired knob by name: a file carrying
turn_timeout_ms is told that no such key exists rather than being loaded
with a value nothing reads.
Fields§
§harnesses: Vec<AssistantHarnessConfig>Per-harness account declarations, from [[assistant.harness]]. Empty is
a complete answer: every harness the catalogue ships is still offered,
with no accounts on it.
Implementations§
Source§impl AssistantConfig
impl AssistantConfig
Sourcepub fn resolved(&self) -> ResolvedAssistantConfig
pub fn resolved(&self) -> ResolvedAssistantConfig
The section with every declared account settled.
A section that cannot be described resolves to the STOCK form — no
accounts — rather than to a dark one, because there is no longer anything
here that could switch the surface off: the assistant is served either
way, and what an unresolvable section loses is the accounts it tried to
declare. Self::validate has already refused every such section on
every loaded configuration, so this arm is reachable only from a
hand-constructed config that skipped validation.
Trait Implementations§
Source§impl Clone for AssistantConfig
impl Clone for AssistantConfig
Source§fn clone(&self) -> AssistantConfig
fn clone(&self) -> AssistantConfig
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 AssistantConfig
impl Debug for AssistantConfig
Source§impl Default for AssistantConfig
impl Default for AssistantConfig
Source§fn default() -> AssistantConfig
fn default() -> AssistantConfig
Source§impl<'de> Deserialize<'de> for AssistantConfigwhere
AssistantConfig: Default,
impl<'de> Deserialize<'de> for AssistantConfigwhere
AssistantConfig: Default,
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>,
impl Eq for AssistantConfig
Source§impl PartialEq for AssistantConfig
impl PartialEq for AssistantConfig
impl StructuralPartialEq for AssistantConfig
Auto Trait Implementations§
impl Freeze for AssistantConfig
impl RefUnwindSafe for AssistantConfig
impl Send for AssistantConfig
impl Sync for AssistantConfig
impl Unpin for AssistantConfig
impl UnsafeUnpin for AssistantConfig
impl UnwindSafe for AssistantConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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