pub struct EmbeddingData {
pub embedding: Vec<f64>,
pub index: Option<u32>,
pub object: String,
pub extra: BTreeMap<String, Value>,
}Expand description
表示单个 embedding 向量项。
Fields§
§embedding: Vec<f64>embedding 向量。
index: Option<u32>向量索引。
object: String对象类型。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl Clone for EmbeddingData
impl Clone for EmbeddingData
Source§fn clone(&self) -> EmbeddingData
fn clone(&self) -> EmbeddingData
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 EmbeddingData
impl Debug for EmbeddingData
Source§impl Default for EmbeddingData
impl Default for EmbeddingData
Source§fn default() -> EmbeddingData
fn default() -> EmbeddingData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmbeddingData
impl<'de> Deserialize<'de> for EmbeddingData
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 Freeze for EmbeddingData
impl RefUnwindSafe for EmbeddingData
impl Send for EmbeddingData
impl Sync for EmbeddingData
impl Unpin for EmbeddingData
impl UnsafeUnpin for EmbeddingData
impl UnwindSafe for EmbeddingData
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