pub struct SearchEntry {
pub path: String,
pub anchor: String,
pub title: String,
pub heading: String,
pub description: String,
pub body: String,
pub breadcrumb: String,
pub api_method: Option<HttpMethod>,
/* private fields */
}Expand description
A searchable entry in the documentation.
One entry per document section (split on h2–h4 headings): content before
the first heading is a page-level “intro” entry with an empty heading /
anchor, and each heading starts a new entry whose anchor deep-links to
the rendered heading id. OpenAPI operations are indexed as single page-level
entries. The *_lower fields are lowercased once at build time so search
never re-lowercases per keystroke.
Fields§
§path: StringContent path of the owning page (e.g. “getting-started/introduction”).
anchor: StringAnchor id of the section heading, empty for page-level / intro entries.
Matches the rendered heading id (dioxus_mdx::slugify).
title: StringPage title (frontmatter title or humanised slug / API summary).
heading: StringSection heading text, empty for page-level / intro entries.
description: StringPage/operation description.
body: StringCleaned section body text used for matching and snippet extraction.
Sidebar breadcrumb (nav group, or API group + tag).
api_method: Option<HttpMethod>HTTP method for API operation entries (drives the result badge).