Struct spin_sdk::llm::llm::EmbeddingsResult
source · pub struct EmbeddingsResult {
pub embeddings: Vec<Vec<f32>>,
pub usage: EmbeddingsUsage,
}
Expand description
Result of generating embeddings
Fields§
§embeddings: Vec<Vec<f32>>
The embeddings generated by the request
usage: EmbeddingsUsage
Usage related to the embeddings generation request
Trait Implementations§
source§impl Clone for EmbeddingsResult
impl Clone for EmbeddingsResult
source§fn clone(&self) -> EmbeddingsResult
fn clone(&self) -> EmbeddingsResult
Returns a copy 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 RefUnwindSafe for EmbeddingsResult
impl Send for EmbeddingsResult
impl Sync for EmbeddingsResult
impl Unpin for EmbeddingsResult
impl UnwindSafe for EmbeddingsResult
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