pub struct InferenceResponse {
pub success: bool,
pub id: u32,
pub result: InferenceResult,
}
Expand description
Response containing inference results.
Received after sending a ClassifyMessage
, contains the model’s
predictions and confidence scores.
Fields§
§success: bool
Indicates if the inference was successful
id: u32
Message identifier matching the request
result: InferenceResult
The actual inference results
Trait Implementations§
Source§impl Debug for InferenceResponse
impl Debug for InferenceResponse
Source§impl<'de> Deserialize<'de> for InferenceResponse
impl<'de> Deserialize<'de> for InferenceResponse
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 InferenceResponse
impl RefUnwindSafe for InferenceResponse
impl Send for InferenceResponse
impl Sync for InferenceResponse
impl Unpin for InferenceResponse
impl UnwindSafe for InferenceResponse
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