Expand description
Serde models for the GitHub REST API (only what rootle consumes).
UI-facing types (SearchItem, TreeNode, …) live in
crate::provider — the trait boundary; these are wire models.
Structs§
- Code
Item - Code
Repo - Commit
Author - Commit
File Item - Commit
Meta - Commit
Parent - Commit
Response - GET /repos/{o}/{r}/commits/{sha} (v1.6, plans/0028): the commit
viewer’s detail.
statusstays raw — GitHub also emits “changed”/“unchanged”, which the provider seam degrades tomodified. - Match
Range - OrgRepo
Item - Repo
Item - Repo
Meta - Search
Code Response - GET /search/code (Accept: application/vnd.github.text-match+json).
- Search
Repos Response - Search
Users Response - Text
Match - A matched fragment: snippet text + match positions (byte indices
into
fragment). Fragments carry no absolute line numbers — the app locates them in the fetched blob for real line numbers. - Tree
Entry - Tree
Response - GET /repos/{o}/{r}/git/trees/{branch}?recursive=1
- User
Item