Skip to main content

authentik_client/models/
sync_status.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.10.4
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// SyncStatus : Provider/source sync status
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SyncStatus {
17    #[serde(rename = "is_running")]
18    pub is_running: bool,
19    #[serde(rename = "last_successful_sync", skip_serializing_if = "Option::is_none")]
20    pub last_successful_sync: Option<String>,
21    #[serde(rename = "last_sync_status", skip_serializing_if = "Option::is_none")]
22    pub last_sync_status: Option<models::TaskAggregatedStatusEnum>,
23}
24
25impl SyncStatus {
26    /// Provider/source sync status
27    pub fn new(is_running: bool) -> SyncStatus {
28        SyncStatus {
29            is_running,
30            last_successful_sync: None,
31            last_sync_status: None,
32        }
33    }
34}