pub struct LensConfig {Show 15 fields
pub enabled: bool,
pub base_url: String,
pub connect_timeout_ms: u64,
pub request_timeout_ms: u64,
pub sla_recall_ms: u64,
pub topic_fanout_k: i32,
pub weight_cap: f64,
pub max_tokens_per_response: i32,
pub mode: String,
pub dpp_rank: i32,
pub enable_facility_location: bool,
pub enable_log_det_dpp: bool,
pub lambda_multiplier: f64,
pub mu_multiplier: f64,
pub lens_tokens_cap: i32,
}Expand description
Lens integration configuration
Fields§
§enabled: bool§base_url: String§connect_timeout_ms: u64§request_timeout_ms: u64§sla_recall_ms: u64§topic_fanout_k: i32§weight_cap: f64§max_tokens_per_response: i32§mode: String§dpp_rank: i32§enable_facility_location: bool§enable_log_det_dpp: bool§lambda_multiplier: f64§mu_multiplier: f64§lens_tokens_cap: i32Implementations§
Trait Implementations§
Source§impl Clone for LensConfig
impl Clone for LensConfig
Source§fn clone(&self) -> LensConfig
fn clone(&self) -> LensConfig
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 LensConfig
impl Debug for LensConfig
Source§impl Default for LensConfig
impl Default for LensConfig
Source§impl<'de> Deserialize<'de> for LensConfig
impl<'de> Deserialize<'de> for LensConfig
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 LensConfig
impl RefUnwindSafe for LensConfig
impl Send for LensConfig
impl Sync for LensConfig
impl Unpin for LensConfig
impl UnwindSafe for LensConfig
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