Mercurial > templog
diff rust/src/types.rs @ 595:e87655ed8429 rust
add config
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 05 Jan 2017 23:26:00 +0800 |
parents | aff50ee77252 |
children | ca8102feaca6 |
line wrap: on
line diff
--- a/rust/src/types.rs Wed Jan 04 17:18:44 2017 +0800 +++ b/rust/src/types.rs Thu Jan 05 23:26:00 2017 +0800 @@ -1,7 +1,8 @@ use std::collections::HashMap; use std::time::Duration; +use serde::{Deserialize,Serialize}; -#[derive(RustcDecodable, RustcEncodable, Debug, Clone)] +#[derive(Deserialize, Serialize, Debug, Clone)] pub struct Params { pub fridge_setpoint: f32, pub fridge_difference: f32,