use zbus::dbus_proxy;
#[dbus_proxy(interface = "org.freedesktop.UDisks2.Encrypted")]
trait Encrypted {
fn change_passphrase(
&self,
passphrase: &str,
new_passphrase: &str,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
fn lock(
&self,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
fn resize(
&self,
size: u64,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
fn unlock(
&self,
passphrase: &str,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
#[dbus_proxy(property)]
fn child_configuration(
&self,
) -> zbus::Result<
Vec<(
String,
std::collections::HashMap<String, zbus::zvariant::OwnedValue>,
)>,
>;
#[dbus_proxy(property)]
fn cleartext_device(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
#[dbus_proxy(property)]
fn hint_encryption_type(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn metadata_size(&self) -> zbus::Result<u64>;
}