docs/generated/contracts.mdgenerated from code
Reference · 1 min read
api-saves-latest
Contracts: api-saves-latest.
Read as
Source: crates/lvcs-api/src/hooks.rs.
1/// `saves.latest` (discussion:owner/532): the caller's newest saves, each file it2/// changed through this daemon since the daemon started with its newest3/// heads, as the `Stop` gate keeps them. Core holds no change set, so it4/// doesn't judge which frontier holds them: a plugin compares them with5/// its own channels' frontiers. Read-only; a restart forgets them, as it6/// forgets the gate's.7#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]8pub struct SavesLatestParams {}910/// `saves.latest` result: each file's path and its newest heads, as11/// `frontier.read` writes a path's heads, sorted.12#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]13pub struct SavesLatestResult {14 #[serde(default)]15 pub files: std::collections::BTreeMap<String, Vec<String>>,16}