pub struct OpenAIConfigBuilder { /* private fields */ }
Expand description
Builder for OpenAIConfig
.
Implementations§
Source§impl OpenAIConfigBuilder
impl OpenAIConfigBuilder
pub fn base_url(&mut self, value: String) -> &mut Self
pub fn api_key(&mut self, value: Option<SecretString>) -> &mut Self
pub fn org_id(&mut self, value: Option<String>) -> &mut Self
pub fn project_id(&mut self, value: Option<String>) -> &mut Self
pub fn beta(&mut self, value: Option<String>) -> &mut Self
Trait Implementations§
Source§impl Clone for OpenAIConfigBuilder
impl Clone for OpenAIConfigBuilder
Source§fn clone(&self) -> OpenAIConfigBuilder
fn clone(&self) -> OpenAIConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OpenAIConfigBuilder
impl Debug for OpenAIConfigBuilder
Auto Trait Implementations§
impl Freeze for OpenAIConfigBuilder
impl RefUnwindSafe for OpenAIConfigBuilder
impl Send for OpenAIConfigBuilder
impl Sync for OpenAIConfigBuilder
impl Unpin for OpenAIConfigBuilder
impl UnwindSafe for OpenAIConfigBuilder
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