use zbus::zvariant::OwnedObjectPath;
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct Job {
pub id: u32,
pub unit_name: String,
pub job_type: String,
pub job_state: String,
pub job_path: OwnedObjectPath,
pub unit_path: OwnedObjectPath,
}
impl
From<(
u32,
String,
String,
String,
OwnedObjectPath,
OwnedObjectPath,
)> for Job
{
fn from(
value: (
u32,
String,
String,
String,
OwnedObjectPath,
OwnedObjectPath,
),
) -> Self {
Job {
id: value.0,
unit_name: value.1,
job_type: value.2,
job_state: value.3,
job_path: value.4,
unit_path: value.5,
}
}
}