pub struct MatrixResult {
pub success: bool,
pub error: Option<String>,
pub result: Option<f64>,
pub similarity: Option<f64>,
pub data: Option<Vec<f32>>,
}Expand description
Matrix operation result
Fields§
§success: boolOperation success status
error: Option<String>Error message if operation failed
result: Option<f64>Numeric result (for dot product, etc.)
similarity: Option<f64>Similarity score (for cosine similarity)
data: Option<Vec<f32>>Vector/matrix data result
Trait Implementations§
Source§impl Clone for MatrixResult
impl Clone for MatrixResult
Source§fn clone(&self) -> MatrixResult
fn clone(&self) -> MatrixResult
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 moreAuto Trait Implementations§
impl Freeze for MatrixResult
impl RefUnwindSafe for MatrixResult
impl Send for MatrixResult
impl Sync for MatrixResult
impl Unpin for MatrixResult
impl UnwindSafe for MatrixResult
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