Struct huelib::resource::rule::Rule [−][src]
pub struct Rule {
pub id: String,
pub name: String,
pub owner: Option<String>,
pub last_triggered: Option<NaiveDateTime>,
pub times_triggered: usize,
pub created: NaiveDateTime,
pub status: Status,
pub conditions: Vec<Condition>,
pub actions: Vec<Action>,
}
Expand description
A rule for resources on a bridge.
Fields
id: String
Identifier of the rule.
name: String
Name of the rule.
owner: Option<String>
Owner of the rule.
last_triggered: Option<NaiveDateTime>
When the rule was last triggered.
times_triggered: usize
How often the rule was triggered.
created: NaiveDateTime
When the rule was created.
status: Status
Status of the rule.
conditions: Vec<Condition>
Conditions of the rule.
actions: Vec<Action>
Actions of the rule.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Rule
impl UnwindSafe for Rule
Blanket Implementations
Mutably borrows from an owned value. Read more