pub struct EmbedResponse {
pub embeddings: Vec<Vec<f64>>,
pub model: String,
pub cost_ticks: i64,
pub request_id: String,
}Expand description
Response from text embedding.
Fields§
§embeddings: Vec<Vec<f64>>Embedding vectors, one per input string.
model: StringModel that generated the embeddings.
cost_ticks: i64Total cost in ticks.
request_id: StringUnique request identifier.
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 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