Skip to main content

sysd_manager_base/
proxy.rs

1use serde::{Deserialize, Serialize};
2use zvariant::{OwnedObjectPath, Type};
3
4#[derive(Debug, Type, Serialize, Deserialize)]
5pub struct DisEnAbleUnitFiles {
6    pub change_type: String,
7    pub file_name: String,
8    pub destination: String,
9}
10
11#[derive(Debug, Type, Serialize, Deserialize)]
12pub struct DisEnAbleUnitFilesResponse {
13    carries_install_info: bool,
14    changes: Vec<DisEnAbleUnitFiles>,
15}
16
17#[derive(Debug, Type, Serialize, Deserialize)]
18pub struct QueuedJobs {
19    ///The numeric job id
20    job_id: u32,
21
22    //The primary unit name for this job
23    primary_unit_name: String,
24
25    //The job type as string
26    job_type: String,
27
28    ///The job state as string
29    job_state: String,
30
31    ///The job object path
32    job_object: OwnedObjectPath,
33
34    ///The unit object path
35    unit_object: OwnedObjectPath,
36}