pub struct Embedding {
pub id: Uuid,
pub content: String,
pub content_hash: String,
pub vector: Vec<f32>,
pub model: String,
pub source_type: String,
pub source_id: Option<String>,
pub metadata: Option<Value>,
pub created_at: DateTime<Utc>,
}Expand description
Embedding model
Fields§
§id: Uuid§content: String§content_hash: String§vector: Vec<f32>§model: String§source_type: String§source_id: Option<String>§metadata: Option<Value>§created_at: DateTime<Utc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Embedding
impl<'de> Deserialize<'de> for Embedding
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 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