Struct ProviderInfo
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§
§impl Clone for ProviderInfo
impl Clone for ProviderInfo
§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 more§impl Debug for ProviderInfo
impl Debug for ProviderInfo
§impl<'de> Deserialize<'de> for ProviderInfo
impl<'de> Deserialize<'de> for ProviderInfo
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProviderInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProviderInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl PartialEq for ProviderInfo
impl PartialEq for ProviderInfo
§impl Serialize for ProviderInfo
impl Serialize for ProviderInfo
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for ProviderInfo
impl StructuralPartialEq for ProviderInfo
Auto Trait Implementations§
impl Freeze for ProviderInfo
impl RefUnwindSafe for ProviderInfo
impl Send for ProviderInfo
impl Sync for ProviderInfo
impl Unpin for ProviderInfo
impl UnsafeUnpin for ProviderInfo
impl UnwindSafe for ProviderInfo
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
key and return true if they are equal.§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<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