pub struct InternConfig {
pub name: String,
pub provider: String,
pub model: String,
pub description: Option<String>,
pub base_url: Option<String>,
pub api_key_env: Option<String>,
}Fields§
§name: String§provider: String§model: String§description: Option<String>§base_url: Option<String>§api_key_env: Option<String>Trait Implementations§
Source§impl Clone for InternConfig
impl Clone for InternConfig
Source§fn clone(&self) -> InternConfig
fn clone(&self) -> InternConfig
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 InternConfig
impl Debug for InternConfig
Source§impl Default for InternConfig
impl Default for InternConfig
Source§fn default() -> InternConfig
fn default() -> InternConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InternConfig
impl<'de> Deserialize<'de> for InternConfig
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 InternConfig
impl RefUnwindSafe for InternConfig
impl Send for InternConfig
impl Sync for InternConfig
impl Unpin for InternConfig
impl UnsafeUnpin for InternConfig
impl UnwindSafe for InternConfig
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