pub struct OllamaConfig {
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 OllamaConfig
impl Clone for OllamaConfig
Source§fn clone(&self) -> OllamaConfig
fn clone(&self) -> OllamaConfig
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 OllamaConfig
impl Debug for OllamaConfig
Source§impl<'de> Deserialize<'de> for OllamaConfig
impl<'de> Deserialize<'de> for OllamaConfig
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 OllamaConfig
impl RefUnwindSafe for OllamaConfig
impl Send for OllamaConfig
impl Sync for OllamaConfig
impl Unpin for OllamaConfig
impl UnwindSafe for OllamaConfig
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