pub struct RoutingDecision {
pub candidate_id: String,
pub confidence: f64,
pub use_lightweight: bool,
pub uncertainty: f64,
}Expand description
Routing decision
Fields§
§candidate_id: StringCandidate ID
confidence: f64Confidence score (0.0 to 1.0)
use_lightweight: boolWhether to use lightweight model
uncertainty: f64Uncertainty estimate (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for RoutingDecision
impl Clone for RoutingDecision
Source§fn clone(&self) -> RoutingDecision
fn clone(&self) -> RoutingDecision
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 RoutingDecision
impl Debug for RoutingDecision
Source§impl From<RoutingDecision> for RoutingDecision
impl From<RoutingDecision> for RoutingDecision
Source§fn from(decision: CoreRoutingDecision) -> Self
fn from(decision: CoreRoutingDecision) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for RoutingDecision
impl FromNapiValue for RoutingDecision
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 RoutingDecision
impl ToNapiValue for RoutingDecision
Source§unsafe fn to_napi_value(
env: napi_env,
val: RoutingDecision,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: RoutingDecision, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for RoutingDecision
impl TypeName for RoutingDecision
Source§impl ValidateNapiValue for RoutingDecision
impl ValidateNapiValue for RoutingDecision
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 RoutingDecision
impl RefUnwindSafe for RoutingDecision
impl Send for RoutingDecision
impl Sync for RoutingDecision
impl Unpin for RoutingDecision
impl UnwindSafe for RoutingDecision
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