pub struct ModelProviderChoice {
pub provider_type: String,
pub alias: String,
pub model: String,
pub fields: HashMap<String, String>,
}Expand description
Model provider widget submission. The Quickstart UI surfaces only the “greatest hits” fields an agent literally cannot start without; everything else (retry policy, rate limits, custom headers) lives in the post-Quickstart config editor.
provider_type is the type key written to
providers.models.<provider_type>.<alias>. The exact set of
recognised type strings tracks the existing
providers::ProviderKind; Quickstart validates the chosen value
at apply time via the runtime entry point.
Fields§
§provider_type: StringProvider type identifier (anthropic, openai, openrouter,
ollama, etc.). Used as the type segment in the TOML path.
alias: StringUser-named alias. Defaults to "default" in the UI; users
override when stacking multiple aliases of the same provider
type (e.g. anthropic-work, anthropic-personal).
model: StringModel id written to providers.models.<type>.<alias>.model at
apply time.
fields: HashMap<String, String>Round-trip of every field the daemon described in
quickstart/fields. Surfaces echo back exactly what was
emitted; the daemon writes each entry under <prefix>.<key>
using its own schema knowledge.
Trait Implementations§
Source§impl Clone for ModelProviderChoice
impl Clone for ModelProviderChoice
Source§fn clone(&self) -> ModelProviderChoice
fn clone(&self) -> ModelProviderChoice
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelProviderChoice
impl Debug for ModelProviderChoice
Source§impl<'de> Deserialize<'de> for ModelProviderChoice
impl<'de> Deserialize<'de> for ModelProviderChoice
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>,
Source§impl JsonSchema for ModelProviderChoice
impl JsonSchema for ModelProviderChoice
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ModelProviderChoice
impl PartialEq for ModelProviderChoice
Source§impl Serialize for ModelProviderChoice
impl Serialize for ModelProviderChoice
impl Eq for ModelProviderChoice
impl StructuralPartialEq for ModelProviderChoice
Auto Trait Implementations§
impl Freeze for ModelProviderChoice
impl RefUnwindSafe for ModelProviderChoice
impl Send for ModelProviderChoice
impl Sync for ModelProviderChoice
impl Unpin for ModelProviderChoice
impl UnsafeUnpin for ModelProviderChoice
impl UnwindSafe for ModelProviderChoice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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