pub struct ModelProviderRef {
pub id: String,
pub kind: ModelProviderKind,
pub label: String,
}Expand description
A neutral reference to the model provider that produced a model: an opaque id, a human-readable label, and the provider kind. Carried on each enumerated Model so consumers can group by provider without reaching into a provider-shaped internal type.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§id: StringOpaque, stable id of the provider that produced this model. Matches the enumerated ModelProviderDescriptor.id.
kind: ModelProviderKindThe provider kind.
label: StringHuman-readable provider label, owned by the runtime so every consumer renders identical text.
Trait Implementations§
Source§impl Clone for ModelProviderRef
impl Clone for ModelProviderRef
Source§impl Debug for ModelProviderRef
impl Debug for ModelProviderRef
Source§impl Default for ModelProviderRef
impl Default for ModelProviderRef
Source§impl<'de> Deserialize<'de> for ModelProviderRef
impl<'de> Deserialize<'de> for ModelProviderRef
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 ModelProviderRef
impl RefUnwindSafe for ModelProviderRef
impl Send for ModelProviderRef
impl Sync for ModelProviderRef
impl Unpin for ModelProviderRef
impl UnsafeUnpin for ModelProviderRef
impl UnwindSafe for ModelProviderRef
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