Type Alias sbp::json::JsonMap

source ·
pub type JsonMap = Map<String, Value>;
Expand description

A JSON map holding all the fields and metadata of the SBP message. This is format used by the output of the sbp2json tool, for example:

{ “crc”: 49084, “length”: 52, “msg_type”: 1025, “msg_name”: “MSG_LOG”, “payload”: “BHNicCBuZXcgY2xpZW50IGNvbm5lY3Rpb24gOjpmZmZmOjE5Mi4xNjguMC4xMDo2MTQ1MA==”, “preamble”: 85, “sender”: 4096, “level”: 4, “text”: “sbp new client connection ::ffff:192.168.0.10:61450” }

Aliased Type§

struct JsonMap { /* private fields */ }

Trait Implementations§

source§

impl TryFrom<Sbp> for JsonMap

§

type Error = JsonError

The type returned in the event of a conversion error.
source§

fn try_from(msg: Sbp) -> Result<Self, Self::Error>

Performs the conversion.