pub struct ProviderInfo {
pub name: String,
pub kind: String,
pub base_url: Option<String>,
pub model: Option<String>,
pub has_credentials: bool,
}Expand description
A provider as surfaced on the read side (GET /api/workspaces): enough for
the dashboard’s launch-modal provider picker and a “has credentials” pill,
without exposing the Secret reference itself.
Fields§
§name: StringProvider name (what an agent binds by providerRef).
kind: StringProvider kind (e.g. ollama, anthropic).
base_url: Option<String>Override base URL, if set.
On the read side because the config editor round-trips it: without it, reopening a workspace showed a blank base URL and saving silently dropped the stored one, pointing every agent back at the in-pod default (#188). Unlike the credential Secret, a base URL is not sensitive.
model: Option<String>Default model for this provider, if set.
has_credentials: boolWhether the provider references a credential Secret (keyless providers
like ollama are false). The Secret name/key is intentionally not
surfaced on the read side.
Trait Implementations§
Source§impl Clone for ProviderInfo
impl Clone for ProviderInfo
Source§fn clone(&self) -> ProviderInfo
fn clone(&self) -> ProviderInfo
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 ProviderInfo
impl Debug for ProviderInfo
Source§impl<'de> Deserialize<'de> for ProviderInfo
impl<'de> Deserialize<'de> for ProviderInfo
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 PartialEq for ProviderInfo
impl PartialEq for ProviderInfo
Source§fn eq(&self, other: &ProviderInfo) -> bool
fn eq(&self, other: &ProviderInfo) -> bool
self and other values to be equal, and is used by ==.