pub struct OpenaiConfig {
pub endpoint: String,
pub max_retries: u32,
pub retry_delay_ms: u64,
}Fields§
§endpoint: String§max_retries: u32Maximum number of retry attempts for throttled requests
retry_delay_ms: u64Initial delay in milliseconds before first retry
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 moreSource§impl Debug for OpenaiConfig
impl Debug for OpenaiConfig
Source§impl<'de> Deserialize<'de> for OpenaiConfig
impl<'de> Deserialize<'de> for OpenaiConfig
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 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