talos-sync-types 0.1.7

Canonical data and errors for account-scoped Talos synchronization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct SyncPresence {
    pub peer_id: String,
    pub computer_id: String,
    /// Unix milliseconds, independent of Session event ordering.
    pub observed_at: i64,
    /// Unix milliseconds; transient presence expires after at most 60 seconds.
    pub valid_until: i64,
}