Crate openleadr_wire

Source
Expand description

Wire format definitions for OpenADR endpoints

The types in this module model the messages sent over the wire in OpenADR 3.0. Most types are originally generated from the OpenAPI specification of OpenADR and manually modified to be more idiomatic.

Re-exports§

pub use event::Event;
pub use program::Program;
pub use report::Report;
pub use ven::Ven;

Modules§

event
Types used for the event/ endpoint
interval
Descriptions of temporal periods
oauth
problem
program
Types used for the program/ endpoint
report
Types used for the report/ endpoint
resource
serde_rfc3339
target
Types to filter resources
values_map
Helper types to realize type values relations
ven

Structs§

Duration
An ISO 8601 formatted duration
Identifier
A string that matches /^[a-zA-Z0-9_-]*$/ with length in 1..=128

Enums§

Attribute
DataQuality
IdentifierError
OperatingState
Unit

Functions§

string_within_range_inclusive