pub struct OpenAIBuilder { /* private fields */ }Expand description
Builder for the root SDK client scaffold.
Implementations§
Source§impl OpenAIBuilder
impl OpenAIBuilder
Sourcepub fn config(self, config: ClientConfig) -> Self
pub fn config(self, config: ClientConfig) -> Self
Replaces the scaffold configuration.
Sourcepub fn organization(self, organization: impl Into<String>) -> Self
pub fn organization(self, organization: impl Into<String>) -> Self
Sets an explicit organization identifier.
Sourcepub fn user_agent(self, user_agent: impl Into<String>) -> Self
pub fn user_agent(self, user_agent: impl Into<String>) -> Self
Sets a custom user-agent token or prefix.
Sourcepub fn webhook_secret(self, webhook_secret: impl Into<String>) -> Self
pub fn webhook_secret(self, webhook_secret: impl Into<String>) -> Self
Sets a default webhook secret for signature verification helpers.
Sourcepub fn max_retries(self, max_retries: u32) -> Self
pub fn max_retries(self, max_retries: u32) -> Self
Sets a client-level retry budget.
Trait Implementations§
Source§impl Clone for OpenAIBuilder
impl Clone for OpenAIBuilder
Source§fn clone(&self) -> OpenAIBuilder
fn clone(&self) -> OpenAIBuilder
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 moreSource§impl Debug for OpenAIBuilder
impl Debug for OpenAIBuilder
Source§impl Default for OpenAIBuilder
impl Default for OpenAIBuilder
Source§fn default() -> OpenAIBuilder
fn default() -> OpenAIBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpenAIBuilder
impl RefUnwindSafe for OpenAIBuilder
impl Send for OpenAIBuilder
impl Sync for OpenAIBuilder
impl Unpin for OpenAIBuilder
impl UnsafeUnpin for OpenAIBuilder
impl UnwindSafe for OpenAIBuilder
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