pub struct ProviderSpec {
pub id: String,
pub display_name: String,
pub base_url: String,
}Expand description
The provider a session resolved to.
Carries only what a client cannot look up for itself: the id to key state
on, a name to show a user, and the endpoint actually in use — which env
overrides can move away from the published default, so it is a property of
this session rather than of the provider. The provider’s model list is not
here; it is the same for every session and is published by ante catalog.
Unknown fields are ignored, so payloads still carrying it decode fine.
Fields§
§id: String§display_name: String§base_url: StringTrait Implementations§
Source§impl Clone for ProviderSpec
impl Clone for ProviderSpec
Source§fn clone(&self) -> ProviderSpec
fn clone(&self) -> ProviderSpec
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 ProviderSpec
impl Debug for ProviderSpec
Source§impl Default for ProviderSpec
impl Default for ProviderSpec
Source§fn default() -> ProviderSpec
fn default() -> ProviderSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderSpec
impl<'de> Deserialize<'de> for ProviderSpec
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProviderSpec
impl RefUnwindSafe for ProviderSpec
impl Send for ProviderSpec
impl Sync for ProviderSpec
impl Unpin for ProviderSpec
impl UnsafeUnpin for ProviderSpec
impl UnwindSafe for ProviderSpec
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