pub struct Embedding {
pub index: i64,
pub embedding: Vec<f64>,
pub object: String,
}
Expand description
Represents an embedding vector returned by embedding endpoint.
Fields§
§index: i64
The index of the embedding in the list of embeddings.
embedding: Vec<f64>
The embedding vector, which is a list of floats.
object: String
The object type, which is always “embedding”.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Embedding
impl RefUnwindSafe for Embedding
impl Send for Embedding
impl Sync for Embedding
impl Unpin for Embedding
impl UnwindSafe for Embedding
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