pub struct RecordSection {
pub role: SectionRole,
pub heading: Option<String>,
pub text: String,
pub sentences: Vec<Sentence>,
pub token_count: usize,
pub embedding: Option<Arc<[f32]>>,
}Expand description
A structured section within a record.
Fields§
§role: SectionRoleSemantic role used by selectors (for example, anchor vs context text).
heading: Option<String>Optional short heading/title for this section.
text: StringFull section text.
sentences: Vec<Sentence>Sentence-level segmentation of text used by chunking strategies.
token_count: usizePrecomputed token count for this section, populated during section construction.
embedding: Option<Arc<[f32]>>Optional precomputed embedding for this section’s text.
Populated by sources that already hold vectors (e.g. SRD stores);
None for text-only sources. The sampler treats this as opaque
payload: it is cloned by Arc into chunks materialized from this
section and never interpreted, compared, or persisted (transient —
re-ingested from the source on resume).
Trait Implementations§
Source§impl Clone for RecordSection
impl Clone for RecordSection
Source§impl Debug for RecordSection
impl Debug for RecordSection
Source§impl Default for RecordSection
impl Default for RecordSection
Source§impl<'de> Deserialize<'de> for RecordSection
impl<'de> Deserialize<'de> for RecordSection
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 RecordSection
impl RefUnwindSafe for RecordSection
impl Send for RecordSection
impl Sync for RecordSection
impl Unpin for RecordSection
impl UnsafeUnpin for RecordSection
impl UnwindSafe for RecordSection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more