pub struct EmbeddingResponse {
pub object: String,
pub model: String,
pub data: Vec<Embedding>,
pub usage: Option<EmbeddingUsage>,
}Expand description
Embedding response.
Fields§
§object: StringThe object type of data field, which is always "list".
model: StringModel ID used to create embedding.
data: Vec<Embedding>A list of embedding objects.
usage: Option<EmbeddingUsage>Token usage information.
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 Default for EmbeddingResponse
impl Default for EmbeddingResponse
Source§fn default() -> EmbeddingResponse
fn default() -> EmbeddingResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmbeddingResponse
impl<'de> Deserialize<'de> for EmbeddingResponse
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
Source§impl PartialEq for EmbeddingResponse
impl PartialEq for EmbeddingResponse
Source§impl Serialize for EmbeddingResponse
impl Serialize 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 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