pub struct Base64Embedding {
pub index: u32,
pub object: String,
pub embedding: Base64EmbeddingVector,
}
Expand description
Represents an base64-encoded embedding vector returned by embedding endpoint.
Fields§
§index: u32
The index of the embedding in the list of embeddings.
object: String
The object type, which is always “embedding”.
embedding: Base64EmbeddingVector
The embedding vector, encoded in base64.
Trait Implementations§
Source§impl Clone for Base64Embedding
impl Clone for Base64Embedding
Source§fn clone(&self) -> Base64Embedding
fn clone(&self) -> Base64Embedding
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 Base64Embedding
impl Debug for Base64Embedding
Source§impl<'de> Deserialize<'de> for Base64Embedding
impl<'de> Deserialize<'de> for Base64Embedding
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 Base64Embedding
impl PartialEq for Base64Embedding
Source§impl Serialize for Base64Embedding
impl Serialize for Base64Embedding
impl StructuralPartialEq for Base64Embedding
Auto Trait Implementations§
impl Freeze for Base64Embedding
impl RefUnwindSafe for Base64Embedding
impl Send for Base64Embedding
impl Sync for Base64Embedding
impl Unpin for Base64Embedding
impl UnwindSafe for Base64Embedding
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