ble_peripheral_rust/gatt/
service.rs

1use super::characteristic::Characteristic;
2use uuid::Uuid;
3
4#[derive(Debug, Clone)]
5pub struct Service {
6    pub uuid: Uuid,
7    pub primary: bool,
8    pub characteristics: Vec<Characteristic>,
9}
10
11impl Default for Service {
12    fn default() -> Self {
13        Service {
14            uuid: Uuid::nil(),
15            primary: true,
16            characteristics: Vec::new(),
17        }
18    }
19}