pub struct Walkthrough {
pub id: String,
pub title: String,
pub author: String,
pub at: u64,
pub stops: Vec<String>,
pub skipped: Option<String>,
pub summary: Option<String>,
pub rev: Option<String>,
}Fields§
§id: String§title: String§at: u64§stops: Vec<String>The comment ids of the stops, in reading order.
skipped: Option<String>One line on what the agent left out and why. Surfaced, never hidden.
summary: Option<String>The walkthrough’s own overview: a markdown body exactly like a stop’s,
shown as the sidebar’s leading slide. None for a walkthrough with no
summary, which leaves the sidebar starting at the first stop.
rev: Option<String>The full oid of HEAD when this walkthrough was published, so its
anchors can be resolved against the code they actually describe once
the checkout moves on. None for a walkthrough saved before this
existed; its anchors resolve against the live worktree.
Implementations§
Source§impl Walkthrough
impl Walkthrough
Sourcepub fn notes_by_stop(&self, comments: &[Comment]) -> Vec<Vec<String>>
pub fn notes_by_stop(&self, comments: &[Comment]) -> Vec<Vec<String>>
The notes of each stop, in stop order: every comment of the walkthrough’s own session that names no title (so it is a note, not a stop), carries an anchor of its own (a human comment never does), and whose own anchor falls inside that stop’s region. A note whose region matches more than one stop goes to the first, the way the agent wrote it; one matching none (a stop and its own anchor both absent) is not grouped, though it still exists as a comment.
Trait Implementations§
Source§impl Clone for Walkthrough
impl Clone for Walkthrough
Source§fn clone(&self) -> Walkthrough
fn clone(&self) -> Walkthrough
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more