pub struct EmbeddedSection {
pub title: String,
pub content: String,
pub embedding: Vec<f64>,
}Expand description
A document section with a pre-computed embedding.
Fields§
§title: StringSection heading title.
content: StringRaw text content (excluding the heading line itself).
embedding: Vec<f64>Embedding vector produced by the backend embedding provider.
Trait Implementations§
Source§impl Clone for EmbeddedSection
impl Clone for EmbeddedSection
Source§fn clone(&self) -> EmbeddedSection
fn clone(&self) -> EmbeddedSection
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 EmbeddedSection
impl Debug for EmbeddedSection
Source§impl<'de> Deserialize<'de> for EmbeddedSection
impl<'de> Deserialize<'de> for EmbeddedSection
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 EmbeddedSection
impl RefUnwindSafe for EmbeddedSection
impl Send for EmbeddedSection
impl Sync for EmbeddedSection
impl Unpin for EmbeddedSection
impl UnsafeUnpin for EmbeddedSection
impl UnwindSafe for EmbeddedSection
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