authentik_rust/models/
ldap_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/// LdapSyncStatus : LDAP Source sync status
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct LdapSyncStatus {
16    #[serde(rename = "is_running")]
17    pub is_running: bool,
18    #[serde(rename = "tasks")]
19    pub tasks: Vec<models::SystemTask>,
20}
21
22impl LdapSyncStatus {
23    /// LDAP Source sync status
24    pub fn new(is_running: bool, tasks: Vec<models::SystemTask>) -> LdapSyncStatus {
25        LdapSyncStatus {
26            is_running,
27            tasks,
28        }
29    }
30}
31