pub struct VectorRequestConfig {
pub retry_attempts: u32,
pub retry_backoff_secs: u32,
pub timeout_secs: u32,
pub rate_limit: Option<u32>,
}Expand description
Vector 请求配置
Fields§
§retry_attempts: u32重试次数
retry_backoff_secs: u32重试退避时间(秒)
timeout_secs: u32请求超时时间(秒)
rate_limit: Option<u32>请求速率限制(每秒请求数)
Trait Implementations§
Source§impl Clone for VectorRequestConfig
impl Clone for VectorRequestConfig
Source§fn clone(&self) -> VectorRequestConfig
fn clone(&self) -> VectorRequestConfig
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 VectorRequestConfig
impl Debug for VectorRequestConfig
Source§impl<'de> Deserialize<'de> for VectorRequestConfig
impl<'de> Deserialize<'de> for VectorRequestConfig
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 VectorRequestConfig
impl RefUnwindSafe for VectorRequestConfig
impl Send for VectorRequestConfig
impl Sync for VectorRequestConfig
impl Unpin for VectorRequestConfig
impl UnwindSafe for VectorRequestConfig
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