1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// THIS FILE IS AUTO-GENERATED use crate::characteristic::{HapType, Characteristic, Inner, Format, Perm}; /// Motion Detected Characteristic. pub type MotionDetected = Characteristic<bool>; /// Creates a new Motion Detected Characteristic. pub fn new() -> MotionDetected { Characteristic::new(Inner::<bool> { hap_type: HapType::MotionDetected, format: Format::Bool, perms: vec![ Perm::PairedRead, Perm::Events, ], ..Default::default() }) }