pub struct RoutingResponse {
pub decisions: Vec<RoutingDecision>,
pub inference_time_us: u32,
pub candidates_processed: u32,
pub feature_time_us: u32,
}Expand description
Routing response
Fields§
§decisions: Vec<RoutingDecision>Routing decisions
inference_time_us: u32Total inference time in microseconds
candidates_processed: u32Number of candidates processed
feature_time_us: u32Feature engineering time in microseconds
Trait Implementations§
Source§impl Clone for RoutingResponse
impl Clone for RoutingResponse
Source§fn clone(&self) -> RoutingResponse
fn clone(&self) -> RoutingResponse
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 RoutingResponse
impl Debug for RoutingResponse
Source§impl From<RoutingResponse> for RoutingResponse
impl From<RoutingResponse> for RoutingResponse
Source§fn from(response: CoreRoutingResponse) -> Self
fn from(response: CoreRoutingResponse) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for RoutingResponse
impl FromNapiValue for RoutingResponse
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 RoutingResponse
impl ToNapiValue for RoutingResponse
Source§unsafe fn to_napi_value(
env: napi_env,
val: RoutingResponse,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: RoutingResponse, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for RoutingResponse
impl TypeName for RoutingResponse
Source§impl ValidateNapiValue for RoutingResponse
impl ValidateNapiValue for RoutingResponse
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 RoutingResponse
impl RefUnwindSafe for RoutingResponse
impl Send for RoutingResponse
impl Sync for RoutingResponse
impl Unpin for RoutingResponse
impl UnwindSafe for RoutingResponse
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