pub struct EmbedResponse {
pub embeddings: Vec<Vec<f32>>,
pub model: String,
pub dimensions: usize,
pub usage: Option<EmbedUsage>,
}Expand description
Response from an embedding operation.
Fields§
§embeddings: Vec<Vec<f32>>Embedding vectors, one per input.
model: StringModel that generated the embeddings.
dimensions: usizeDimensions of each embedding.
usage: Option<EmbedUsage>Token/unit usage statistics.
Trait Implementations§
Source§impl Clone for EmbedResponse
impl Clone for EmbedResponse
Source§fn clone(&self) -> EmbedResponse
fn clone(&self) -> EmbedResponse
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 EmbedResponse
impl RefUnwindSafe for EmbedResponse
impl Send for EmbedResponse
impl Sync for EmbedResponse
impl Unpin for EmbedResponse
impl UnwindSafe for EmbedResponse
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