pub struct SearchHit {
pub ordinal: u32,
pub outline: OutlineTrail,
pub occurrences: Vec<SearchOccurrence>,
pub occurrence_count: u32,
pub occurrences_truncated: bool,
pub node_source: Option<SourceSpan>,
pub preview: String,
pub context: Vec<SearchContextLine>,
}Expand description
One rendered line or line span containing one or more exact occurrences.
Fields§
§ordinal: u32One-based line-group number in the unpaginated result set.
outline: OutlineTrailComplete logical location of the nearest addressable node.
occurrences: Vec<SearchOccurrence>Exact matcher occurrences on this rendered line or line span.
occurrence_count: u32Total exact matcher occurrences represented by this line group.
occurrences_truncated: boolWhether Self::occurrences omits exact ranges to remain bounded.
node_source: Option<SourceSpan>Original-source location of the owning outline node, when retained.
preview: StringCompact single-string presentation of the match.
context: Vec<SearchContextLine>Optional rendered lines surrounding the match.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SearchHit
impl<'de> Deserialize<'de> for SearchHit
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
impl Eq for SearchHit
Source§impl JsonSchema for SearchHit
impl JsonSchema for SearchHit
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for SearchHit
Auto Trait Implementations§
impl Freeze for SearchHit
impl RefUnwindSafe for SearchHit
impl Send for SearchHit
impl Sync for SearchHit
impl Unpin for SearchHit
impl UnsafeUnpin for SearchHit
impl UnwindSafe for SearchHit
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