mod corpus#
- module corpus#
Load and walk version-controlled markdown canned responses.
Functions
- fn default_corpus_dir() -> PathBuf#
Default corpus directory relative to the current working directory / repo root.
- fn load_response(path: &Path) -> Result<CannedResponse>#
Load a single markdown file into a
CannedResponse.
- fn walk_responses(root: &Path) -> Result<Vec<CannedResponse>>#
Walk
rootfor*.mdfiles and load each as aCannedResponse.
Structs and Unions
- struct CannedResponse#
One canned response derived from a markdown file under the corpus.
- id: String#
Stable id (front matter
idor file stem).
- title: String#
Display title (front matter
titleor first heading / id).
- prefix: Option<String>#
Shared prefix (front matter
prefix, e.g.respor a team-chosen token).
- sop: Option<String>#
Optional SOP link or the literal
none.
- body: String#
Full markdown body (including optional front matter as stored on disk).
- content: String#
Body with YAML front matter stripped, used for search/indexing.
- path: PathBuf#
Absolute or relative path to the source markdown file.
- tags: Vec<String>#
Optional tags from front matter.