Struct openai_rs_api::core::models::embeddings::EmbeddingResponse
source · pub struct EmbeddingResponse {
pub object: String,
pub data: Vec<EmbeddingData>,
pub model: String,
pub usage: Usage,
}Fields§
§object: StringA 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: StringID of the model used for the embedding.
usage: UsageAn 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 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