api: admin: sync: add direction to sync job status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2024-11-25 12:15:32 +01:00 committed by Thomas Lamprecht
parent bfffbef9b2
commit efc45db20c

View File

@ -660,6 +660,9 @@ impl SyncJobConfig {
status: { status: {
type: JobScheduleStatus, type: JobScheduleStatus,
}, },
direction: {
type: SyncDirection,
},
}, },
)] )]
#[derive(Serialize, Deserialize, Clone, PartialEq)] #[derive(Serialize, Deserialize, Clone, PartialEq)]
@ -670,6 +673,9 @@ pub struct SyncJobStatus {
pub config: SyncJobConfig, pub config: SyncJobConfig,
#[serde(flatten)] #[serde(flatten)]
pub status: JobScheduleStatus, pub status: JobScheduleStatus,
/// The direction of the job
pub direction: SyncDirection,
} }
/// These are used separately without `ns`/`max-depth` sometimes in the API, specifically in the API /// These are used separately without `ns`/`max-depth` sometimes in the API, specifically in the API