use zbus::dbus_proxy;
#[dbus_proxy(interface = "org.freedesktop.UDisks2.Swapspace")]
trait Swapspace {
fn set_label(
&self,
label: &str,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
fn start(
&self,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
fn stop(
&self,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
#[dbus_proxy(property)]
fn active(&self) -> zbus::Result<bool>;
}