oa_gateway_uci::json

Function from_json

Source
pub fn from_json(text: &str, schema: &Schema) -> Result<Message, UciError>
Expand description

Parses OMS JSON into a Message.

ยงErrors

Returns UciError::Json if the text is not a single-key object, UciError::UnknownElement if the key is not a global element, UciError::UnknownType if $type names nothing, or UciError::TooDeep / UciError::At while walking the tree.