pub struct RouterConfig {
pub model_path: String,
pub confidence_threshold: Option<f64>,
pub max_uncertainty: Option<f64>,
pub enable_circuit_breaker: Option<bool>,
pub circuit_breaker_threshold: Option<u32>,
pub enable_quantization: Option<bool>,
pub database_path: Option<String>,
}Expand description
Router configuration
Fields§
§model_path: StringModel path
confidence_threshold: Option<f64>Confidence threshold (0.0 to 1.0)
max_uncertainty: Option<f64>Maximum uncertainty (0.0 to 1.0)
enable_circuit_breaker: Option<bool>Enable circuit breaker
circuit_breaker_threshold: Option<u32>Circuit breaker threshold
enable_quantization: Option<bool>Enable quantization
database_path: Option<String>Database path
Trait Implementations§
Source§impl Clone for RouterConfig
impl Clone for RouterConfig
Source§fn clone(&self) -> RouterConfig
fn clone(&self) -> RouterConfig
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 RouterConfig
impl Debug for RouterConfig
Source§impl From<RouterConfig> for RouterConfig
impl From<RouterConfig> for RouterConfig
Source§fn from(config: RouterConfig) -> Self
fn from(config: RouterConfig) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for RouterConfig
impl FromNapiValue for RouterConfig
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for RouterConfig
impl ToNapiValue for RouterConfig
Source§unsafe fn to_napi_value(env: napi_env, val: RouterConfig) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: RouterConfig) -> Result<napi_value>
Safety Read more
Source§impl TypeName for RouterConfig
impl TypeName for RouterConfig
Source§impl ValidateNapiValue for RouterConfig
impl ValidateNapiValue for RouterConfig
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for RouterConfig
impl RefUnwindSafe for RouterConfig
impl Send for RouterConfig
impl Sync for RouterConfig
impl Unpin for RouterConfig
impl UnwindSafe for RouterConfig
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