pub struct EmbedResponse {
pub model: String,
pub embeddings: Vec<Vec<f32>>,
pub total_duration: u64,
pub load_duration: u64,
pub prompt_eval_count: u32,
}Expand description
Response for embeddings.
Fields§
§model: String§embeddings: Vec<Vec<f32>>§total_duration: u64§load_duration: u64§prompt_eval_count: u32Trait 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 (const: unstable) · 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 EmbedResponse
impl Debug for EmbedResponse
Source§impl<'de> Deserialize<'de> for EmbedResponse
impl<'de> Deserialize<'de> for EmbedResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EmbedResponse
impl RefUnwindSafe for EmbedResponse
impl Send for EmbedResponse
impl Sync for EmbedResponse
impl Unpin for EmbedResponse
impl UnsafeUnpin 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