media_tools/models/provider_sync_state.rs
1//! Incremental synchronization cursor for one profile and provider.
2use chrono::{DateTime, Utc};
3use serde::{Deserialize, Serialize};
4
5use super::MediaProfileId;
6
7/// Provider activity cursor and last successful synchronization timestamp.
8#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
9pub struct ProviderSyncState {
10 pub profile_id: MediaProfileId,
11 pub provider: String,
12 /// Provider-specific opaque cursor; serialized by the integration adapter.
13 pub cursor: Option<String>,
14 pub last_synced_at: Option<DateTime<Utc>>,
15 pub status: String,
16}