pub struct FacadeArg { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl TryInto<AdvertisingData> for FacadeArg
impl TryInto<AdvertisingData> for FacadeArg
Deserializes a serde json object according to the following schema
{ ‘advertising_data’: { ‘name’: Some(String), ‘appearance’: Some(u64), ‘service_data’: { ‘uuid’: [‘fb’, ‘34’, ‘9b’, ‘5f’, ‘80’, ‘00’, ‘00’, ‘80’, ‘00’, ‘10’, ‘00’, ‘00’, ‘01’, ‘18’, ‘00’, ‘00’]. ‘data’: “1” }, ‘service_uuids’: [ [‘fb’, ‘34’, ‘9b’, ‘5f’, ‘80’, ‘00’, ‘00’, ‘80’, ‘00’, ‘10’, ‘00’, ‘00’, ‘01’, ‘18’, ‘00’, ‘00’]. [‘fb’, ‘34’, ‘9b’, ‘5f’, ‘80’, ‘00’, ‘00’, ‘80’, ‘00’, ‘10’, ‘00’, ‘00’, ‘00’, ‘18’, ‘00’, ‘00’] ], ‘manufacturer_data’: { ‘id’: 10, ‘data’ }, ‘uris’: Some([‘telnet://192.0.2.16:80/’]), ‘tx_power_level’: Some(1),
}
}
Note: A human readable uuid is represented as a list of bytes: Example Human Readable UUID: ‘00001801-0000-1000-8000-00805f9b34fb’ Actual input: [‘fb’, ‘34’, ‘9b’, ‘5f’, ‘80’, ‘00’, ‘00’, ‘80’, ‘00’, ‘10’, ‘00’, ‘00’, ‘01’, ‘18’, ‘00’, ‘00’]