pub enum EmbeddingFormat {
Float,
Base64,
}Expand description
The format in which the embedding vectors are returned.
Variants§
Float
32-bit floating-point numbers (default).
Base64
Base64-encoded string representation of the floats.
Trait Implementations§
Source§impl Clone for EmbeddingFormat
impl Clone for EmbeddingFormat
Source§fn clone(&self) -> EmbeddingFormat
fn clone(&self) -> EmbeddingFormat
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 EmbeddingFormat
impl Debug for EmbeddingFormat
Source§impl<'de> Deserialize<'de> for EmbeddingFormat
impl<'de> Deserialize<'de> for EmbeddingFormat
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 EmbeddingFormat
impl PartialEq for EmbeddingFormat
Source§impl Serialize for EmbeddingFormat
impl Serialize for EmbeddingFormat
impl Eq for EmbeddingFormat
impl StructuralPartialEq for EmbeddingFormat
Auto Trait Implementations§
impl Freeze for EmbeddingFormat
impl RefUnwindSafe for EmbeddingFormat
impl Send for EmbeddingFormat
impl Sync for EmbeddingFormat
impl Unpin for EmbeddingFormat
impl UnsafeUnpin for EmbeddingFormat
impl UnwindSafe for EmbeddingFormat
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