Skip to main content

core_api/host/
changes.rs

1//! Bounded latest-state invalidation. Consumers reread authoritative reports;
2//! these cursors are process-local and are never persisted as an event queue.
3use serde::{Deserialize, Serialize};
4
5pub const HOST_CHANGES_WAIT_PATH: &str = "/v1/changes/wait";
6
7#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
8#[serde(rename_all = "camelCase", deny_unknown_fields)]
9pub struct HostChangesCursor {
10    pub process_generation: Option<String>,
11    pub revision: Option<u64>,
12}
13
14#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
15#[serde(rename_all = "camelCase")]
16pub struct HostChanges {
17    pub host_id: String,
18    pub cursor: HostChangesCursor,
19}