pub struct EmbeddingResult {
pub embedding: Vec<f32>,
pub model: String,
}Expand description
Result of an embedding operation.
Fields§
§embedding: Vec<f32>The embedding vector
model: StringModel name used
Trait Implementations§
Source§impl Clone for EmbeddingResult
impl Clone for EmbeddingResult
Source§fn clone(&self) -> EmbeddingResult
fn clone(&self) -> EmbeddingResult
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 EmbeddingResult
impl RefUnwindSafe for EmbeddingResult
impl Send for EmbeddingResult
impl Sync for EmbeddingResult
impl Unpin for EmbeddingResult
impl UnwindSafe for EmbeddingResult
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