pub struct ExtractedChunk {
pub chunk_kind: &'static str,
pub chunk_ordinal: u32,
pub heading_path: Option<String>,
pub title: Option<String>,
pub normalized_text: String,
pub location_kind: LocationKind,
pub line_start: u32,
pub line_end: u32,
pub byte_start: Option<u64>,
pub byte_end: Option<u64>,
pub location_quality: &'static str,
pub parent_idx: Option<usize>,
}Expand description
A chunk ready for the pipeline, with no dependency on orbok-db.
The pipeline layer (orbok-workers) maps this to
orbok_db::repo::ChunkSpec. This keeps orbok-extract free of any
database dependency (RFC-044 §14.6).
Fields§
§chunk_kind: &'static str§chunk_ordinal: u32§heading_path: Option<String>§title: Option<String>§normalized_text: String§location_kind: LocationKind§line_start: u32§line_end: u32§byte_start: Option<u64>§byte_end: Option<u64>§location_quality: &'static str§parent_idx: Option<usize>Trait Implementations§
Source§impl Clone for ExtractedChunk
impl Clone for ExtractedChunk
Source§fn clone(&self) -> ExtractedChunk
fn clone(&self) -> ExtractedChunk
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExtractedChunk
impl Debug for ExtractedChunk
Source§impl PartialEq for ExtractedChunk
impl PartialEq for ExtractedChunk
Source§fn eq(&self, other: &ExtractedChunk) -> bool
fn eq(&self, other: &ExtractedChunk) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExtractedChunk
Auto Trait Implementations§
impl Freeze for ExtractedChunk
impl RefUnwindSafe for ExtractedChunk
impl Send for ExtractedChunk
impl Sync for ExtractedChunk
impl Unpin for ExtractedChunk
impl UnsafeUnpin for ExtractedChunk
impl UnwindSafe for ExtractedChunk
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,
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