pub struct EmbeddingResponse {
pub object: String,
pub data: Vec<EmbeddingData>,
pub model: String,
pub usage: Usage,
}
Fields§
§object: String
A string representing the type of object returned. In this case, it should always be “embedding”.
data: Vec<EmbeddingData>
A vector of EmbeddingData
representing the embedding of the input text.
model: String
ID of the model used for the embedding.
usage: Usage
An object containing information about the API usage for the request.
Trait Implementations§
Source§impl Debug for EmbeddingResponse
impl Debug for EmbeddingResponse
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
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