Enum fxbox_taxonomy::values::Value [] [src]

pub enum Value {
    Unit,
    Bool(bool),
    Duration(ValDuration),
    TimeStamp(TimeStamp),
    Temperature(Temperature),
    Color(Color),
    String(Arc<String>),
    ExtNumeric(ExtNumeric),
    Json(Arc<Json>),
    Binary {
        data: Arc<Vec<u8>>,
        mimetype: String,
    },
}

Representation of an actual value that can be sent to/received from a service.

Variants

Unit
Bool
Duration
TimeStamp
Temperature
Color
String
ExtNumeric

A numeric value representing a unit that has not been standardized yet into the API.

Json

A Json value. We put it behind an Arc to make sure that cloning remains unexpensive.

Binary

Binary data.

Fields

data

The actual data. We put it behind an Arc to make sure that cloning remains unexpensive.

mimetype

Methods

impl Value

fn get_type(&self) -> Type

Trait Implementations

impl Deserialize for Value

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

impl Serialize for Value

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

impl PartialOrd for Value

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

1.0.0fn lt(&self, other: &Rhs) -> bool

1.0.0fn le(&self, other: &Rhs) -> bool

1.0.0fn gt(&self, other: &Rhs) -> bool

1.0.0fn ge(&self, other: &Rhs) -> bool

Derived Implementations

impl PartialEq for Value

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

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

impl Clone for Value

fn clone(&self) -> Value

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

impl Debug for Value

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