use std::collections::HashMap;
use zbus::{
proxy,
zvariant::{OwnedObjectPath, Value},
};
#[proxy(interface = "org.bluez.GattDescriptor1", assume_defaults = true)]
pub trait GattDescriptor {
fn read_value(&self, options: HashMap<&str, &Value<'_>>) -> zbus::Result<Vec<u8>>;
fn write_value(&self, value: &[u8], options: HashMap<&str, &Value<'_>>) -> zbus::Result<()>;
#[zbus(property)]
fn characteristic(&self) -> zbus::Result<OwnedObjectPath>;
#[zbus(property, name = "UUID")]
fn uuid(&self) -> zbus::Result<String>;
#[zbus(property)]
fn value(&self) -> zbus::Result<Vec<u8>>;
}