pub struct NomicConfig {
pub api_key: String,
pub model: String,
pub base_url: String,
}Fields§
§api_key: String§model: String§base_url: StringImplementations§
Source§impl NomicConfig
impl NomicConfig
pub fn new(api_key: impl Into<String>) -> Self
pub fn with_model(self, model: NomicModel) -> Self
Trait Implementations§
Source§impl Clone for NomicConfig
impl Clone for NomicConfig
Source§fn clone(&self) -> NomicConfig
fn clone(&self) -> NomicConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NomicConfig
impl RefUnwindSafe for NomicConfig
impl Send for NomicConfig
impl Sync for NomicConfig
impl Unpin for NomicConfig
impl UnsafeUnpin for NomicConfig
impl UnwindSafe for NomicConfig
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