Struct foxbox_taxonomy::values::ExtValue [] [src]

pub struct ExtValue<T> where T: Debug + Clone + PartialEq + PartialOrd + Serialize + Deserialize {
    pub value: T,
    pub vendor: Id<VendorId>,
    pub adapter: Id<AdapterId>,
    pub kind: Id<KindId>,
}

A data structure holding a boolean 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: "PresenceDetected".

Trait Implementations

impl<T: Deserialize> Deserialize for ExtValue<T> where T: Debug + Clone + PartialEq + PartialOrd + Serialize + Deserialize

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

impl<T: Serialize> Serialize for ExtValue<T> where T: Debug + Clone + PartialEq + PartialOrd + Serialize + Deserialize

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

impl<T> Parser<ExtValue<T>> for ExtValue<T> where T: Debug + Clone + PartialEq + PartialOrd + Serialize + Deserialize + Parser<T>

fn description() -> String

fn parse(path: Path, source: &mut JSON) -> Result<Self, ParseError>

fn from_str(source: &str) -> Result<T, ParseError>

fn take(path: Path, source: &mut JSON, field_name: &str) -> Result<T, ParseError>

fn take_opt(path: Path, source: &mut JSON, field_name: &str) -> Option<Result<T, ParseError>>

fn take_vec_opt(path: Path, source: &mut JSON, field_name: &str) -> Option<Result<Vec<T>, ParseError>>

fn take_vec(path: Path, source: &mut JSON, field_name: &str) -> Result<Vec<T>, ParseError>

impl<T> ToJSON for ExtValue<T> where T: Debug + Clone + PartialEq + PartialOrd + Serialize + Deserialize + ToJSON

fn to_json(&self, parts: &mut BinaryParts) -> JSON

impl<T> PartialEq<ExtValue<T>> for ExtValue<T> where T: Debug + Clone + PartialEq + PartialOrd + Serialize + Deserialize

fn eq(&self, other: &Self) -> bool

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

impl<T> PartialOrd<ExtValue<T>> for ExtValue<T> where T: Debug + Clone + PartialEq + PartialOrd + Serialize + Deserialize

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<T: Clone> Clone for ExtValue<T> where T: Debug + Clone + PartialEq + PartialOrd + Serialize + Deserialize

fn clone(&self) -> ExtValue<T>

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

impl<T: Debug> Debug for ExtValue<T> where T: Debug + Clone + PartialEq + PartialOrd + Serialize + Deserialize

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