pub trait ToJSON {
fn to_json(&self, parts: &mut BinaryParts) -> JSON;
}
Required Methods
Implementors
impl ToJSON for Service
impl ToJSON for ChannelKind
impl ToJSON for Channel<Getter>
impl ToJSON for Channel<Setter>
impl ToJSON for Error
impl ToJSON for String
impl ToJSON for bool
impl ToJSON for f64
impl ToJSON for usize
impl ToJSON for JSON
impl<T> ToJSON for HashSet<T> where T: ToJSON + Eq + Hash
impl<T> ToJSON for HashMap<String, T> where T: ToJSON
impl<T> ToJSON for Vec<T> where T: ToJSON
impl<'a, T> ToJSON for Vec<(&'a str, T)> where T: ToJSON
impl<'a> ToJSON for &'a str
impl<'a, T> ToJSON for &'a T where T: ToJSON
impl<K, T, V> ToJSON for HashMap<Id<K>, Result<T, V>> where T: ToJSON, V: ToJSON
impl<T> ToJSON for Option<T> where T: ToJSON
impl ToJSON for ()
impl ToJSON for Type
impl ToJSON for OnOff
impl ToJSON for OpenClosed
impl ToJSON for Temperature
impl ToJSON for Color
impl ToJSON for ThinkerbellRule
impl ToJSON for Json
impl<T> ToJSON for ExtValue<T> where T: Debug + Clone + PartialEq + PartialOrd + Serialize + Deserialize + ToJSON
impl ToJSON for Binary
impl ToJSON for Value
impl ToJSON for TimeStamp
impl ToJSON for Range
impl ToJSON for Duration
impl<T> ToJSON for Id<T>
impl<T, U> ToJSON for HashMap<Id<U>, T> where T: ToJSON