systemdzbus 0.1.5

Interact with systemd through DBus with a convenient rust interface. All of the initial types were automatically generated by the CLI tool 'zbus-xmlgen'. From here I just copied the documentation from the systemd man page to get good descriptions for each function.
Documentation
#[derive(Debug)]
pub struct UnitFile {
    /// The location of the unit file on disk, I think
    pub path: String,
    pub enablement_status: EnablementStatus,
}

#[derive(Debug, PartialEq)]
pub enum EnablementStatus {
    Alias,
    Disabled,
    Enabled,
    EnabledRuntime,
    Generated,
    Static,
    Transient,
    Other(String),
}

impl From<String> for EnablementStatus {
    fn from(value: String) -> Self {
        match value.as_ref() {
            "alias" => EnablementStatus::Alias,
            "disabled" => EnablementStatus::Disabled,
            "enabled" => EnablementStatus::Enabled,
            "enabled-runtime" => EnablementStatus::EnabledRuntime,
            "generated" => EnablementStatus::Generated,
            "static" => EnablementStatus::Static,
            "transient" => EnablementStatus::Transient,
            _ => EnablementStatus::Other(value),
        }
    }
}

impl From<(String, String)> for UnitFile {
    fn from(value: (String, String)) -> Self {
        Self {
            path: value.0,
            enablement_status: value.1.into(),
        }
    }
}