Enum fxbox_taxonomy::values::Type [] [src]

pub enum Type {
    Unit,
    Bool,
    Duration,
    TimeStamp,
    Temperature,
    String,
    Color,
    Json,
    Binary,
    ExtNumeric,
}

The type of values manipulated by endpoints.

Variants

Unit

Trivial values

An empty value. Used for instance to inform that a countdown has reached 0 or that a device is ready.

Bool

A boolean. Used for instance for on-off switches, presence detectors, etc.

Duration

Time

A duration. Used for instance in countdowns.

TimeStamp

A precise timestamp. Used for instance to determine when an event has taken place.

Temperature
String
Color

...

Json
Binary
ExtNumeric

Trait Implementations

impl Deserialize for Type

fn deserialize<__D>(deserializer: &mut __D) -> Result<Type, __D::Error> where __D: Deserializer

impl Serialize for Type

fn serialize<__S>(&self, serializer: &mut __S) -> Result<(), __S::Error> where __S: Serializer

Derived Implementations

impl Ord for Type

fn cmp(&self, __arg_0: &Type) -> Ordering

impl Eq for Type

impl PartialOrd for Type

fn partial_cmp(&self, __arg_0: &Type) -> Option<Ordering>

fn lt(&self, __arg_0: &Type) -> bool

fn le(&self, __arg_0: &Type) -> bool

fn gt(&self, __arg_0: &Type) -> bool

fn ge(&self, __arg_0: &Type) -> bool

impl PartialEq for Type

fn eq(&self, __arg_0: &Type) -> bool

fn ne(&self, __arg_0: &Type) -> bool

impl Clone for Type

fn clone(&self) -> Type

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for Type

fn fmt(&self, __arg_0: &mut Formatter) -> Result