pub struct OpenAiConfig {
pub api_key: String,
pub model: String,
pub api_url: Option<String>,
}
Fields§
§api_key: String
§model: String
§api_url: Option<String>
Implementations§
Trait Implementations§
Source§impl Clone for OpenAiConfig
impl Clone for OpenAiConfig
Source§fn clone(&self) -> OpenAiConfig
fn clone(&self) -> OpenAiConfig
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 OpenAiConfig
impl RefUnwindSafe for OpenAiConfig
impl Send for OpenAiConfig
impl Sync for OpenAiConfig
impl Unpin for OpenAiConfig
impl UnwindSafe for OpenAiConfig
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