pub struct EmbeddingResponse {
pub embedding: Vec<f32>,
pub total_duration: Option<u64>,
pub prompt_eval_count: Option<u32>,
}Expand description
Response from an embedding request.
Fields§
§embedding: Vec<f32>The embedding vector.
total_duration: Option<u64>Total duration in nanoseconds.
prompt_eval_count: Option<u32>Number of tokens in the input.
Implementations§
Trait Implementations§
Source§impl Clone for EmbeddingResponse
impl Clone for EmbeddingResponse
Source§fn clone(&self) -> EmbeddingResponse
fn clone(&self) -> EmbeddingResponse
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 moreSource§impl Debug for EmbeddingResponse
impl Debug for EmbeddingResponse
Source§impl PartialEq for EmbeddingResponse
impl PartialEq for EmbeddingResponse
impl StructuralPartialEq for EmbeddingResponse
Auto Trait Implementations§
impl Freeze for EmbeddingResponse
impl RefUnwindSafe for EmbeddingResponse
impl Send for EmbeddingResponse
impl Sync for EmbeddingResponse
impl Unpin for EmbeddingResponse
impl UnsafeUnpin for EmbeddingResponse
impl UnwindSafe for EmbeddingResponse
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