pub struct Provider {
pub id: String,
pub name: String,
pub npm: String,
pub env: Vec<String>,
pub doc: String,
pub api: Option<String>,
pub models: HashMap<String, Model>,
}Expand description
Provider information from the models.dev API.
Fields§
§id: StringThe unique identifier for the provider.
name: StringThe display name of the provider.
npm: StringNPM package information for the provider.
env: Vec<String>Environment variables required for the provider.
doc: StringDocumentation information.
api: Option<String>API configuration information.
models: HashMap<String, Model>Available models for this provider.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Provider
impl<'de> Deserialize<'de> for Provider
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 Provider
impl RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnwindSafe for Provider
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