Enum foxbox_taxonomy::values::Type
[−]
[src]
pub enum Type { Unit, OnOff, OpenClosed, Duration, TimeStamp, ThinkerbellRule, Temperature, String, Color, Json, Binary, ExtBool, ExtNumeric, }
The type of values manipulated by endpoints.
Variants
Unit | Trivial valuesAn empty value. Used for instance to inform that a countdown has reached 0 or that a device is ready. | |
OnOff | Boolean valuesA boolean on/off state. Used for various two-states switches. | |
OpenClosed | A boolean open/closed state. Used for instance for doors, windows, etc. | |
Duration | TimeA duration. Used for instance in countdowns. | |
TimeStamp | A precise timestamp. Used for instance to determine when an event has taken place. | |
ThinkerbellRule | ||
Temperature | ||
String | ||
Color | ... | |
Json | ||
Binary | ||
ExtBool | ||
ExtNumeric |
Methods
impl Type
fn supports_eq(&self) -> bool
Determine whether using Range::Eq
for this type is
appropriate. Typically, using Range::Eq
for a floating point
number is a bad idea.