Skip to main content

printnanny_os_models/
systemd_manager_reload_unit_reply.rs

1// SystemdManagerReloadUnitReply represents a SystemdManagerReloadUnitReply model.
2#[derive(Clone, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
3pub struct SystemdManagerReloadUnitReply {
4    #[serde(rename="job")]
5    pub job: String,
6    #[serde(rename="unit")]
7    pub unit: Box<crate::SystemdUnit>,
8}
9
10impl SystemdManagerReloadUnitReply {
11    pub fn new(job: String, unit: crate::SystemdUnit) -> SystemdManagerReloadUnitReply {
12        SystemdManagerReloadUnitReply {
13            job,
14            unit: Box::new(unit),
15        }
16    }
17}