Struct fxbox_taxonomy::values::ExtNumeric [] [src]

pub struct ExtNumeric {
    pub value: f64,
    pub vendor: String,
    pub adapter: String,
    pub kind: String,
}

A data structure holding a numeric value of a type that has not been standardized yet.

Fields

value
vendor

The vendor. Used for namespacing purposes, to avoid confusing two incompatible extensions with similar names. For instance, "foxlink@mozilla.com".

adapter

Identification of the adapter introducing this value. Designed to aid with tracing and debugging.

kind

A string describing the nature of the value, designed to aid with type-checking.

Examples: "GroundHumidity".

Trait Implementations

impl Deserialize for ExtNumeric

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

impl Serialize for ExtNumeric

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

impl PartialOrd for ExtNumeric

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 ExtNumeric

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

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

impl Clone for ExtNumeric

fn clone(&self) -> ExtNumeric

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

impl Debug for ExtNumeric

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