pub struct EmbedResult<Val> {
pub value: Val,
pub embedding: Vec<f32>,
pub usage: Option<EmbeddingUsage>,
}Expand description
Result of embedding a single value
Fields§
§value: ValThe original value that was embedded
embedding: Vec<f32>The embedding vector
usage: Option<EmbeddingUsage>Token usage information
Implementations§
Trait Implementations§
Source§impl<Val: Clone> Clone for EmbedResult<Val>
impl<Val: Clone> Clone for EmbedResult<Val>
Source§fn clone(&self) -> EmbedResult<Val>
fn clone(&self) -> EmbedResult<Val>
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<Val> Freeze for EmbedResult<Val>where
Val: Freeze,
impl<Val> RefUnwindSafe for EmbedResult<Val>where
Val: RefUnwindSafe,
impl<Val> Send for EmbedResult<Val>where
Val: Send,
impl<Val> Sync for EmbedResult<Val>where
Val: Sync,
impl<Val> Unpin for EmbedResult<Val>where
Val: Unpin,
impl<Val> UnwindSafe for EmbedResult<Val>where
Val: UnwindSafe,
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