pub struct Output {
pub data: Vec<EmbeddingItem>,
pub detail: Vec<ValidationErrorDetail>,
pub model: Option<String>,
pub object: Option<String>,
pub usage: Option<Usage>,
}Expand description
Response structure for embedding creation, including success and validation error responses.
Fields§
§data: Vec<EmbeddingItem>List of embedding objects.
detail: Vec<ValidationErrorDetail>Validation error details for a 422 Unprocessable Entity response.
model: Option<String>The model used to generate embeddings.
object: Option<String>The object type. Example: “list”.
usage: Option<Usage>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Output
impl<'de> Deserialize<'de> for Output
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 Forget for Output
impl Freeze for Outputwhere
*const u8 is !null: Freeze,
PhantomData<EmbeddingItem>: Freeze,
PhantomData<ValidationErrorDetail>: Freeze,
PhantomData<u8>: Freeze,
impl Move for Output
impl RefUnwindSafe for Output
impl Send for Outputwhere
RawVecInner: Send,
impl Sync for Outputwhere
RawVecInner: Sync,
impl Unpin for Output
impl UnsafeUnpin for Outputwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<EmbeddingItem>: UnsafeUnpin,
PhantomData<ValidationErrorDetail>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Outputwhere
RawVecInner: UnwindSafe,
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