authentik_rust/models/
scim_sync_status.rs

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