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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.