[][src]Struct huelib::resource::rule::Rule

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>,
}

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

impl Clone for Rule[src]

impl Debug for Rule[src]

impl<'de> Deserialize<'de> for Rule[src]

impl Eq for Rule[src]

impl PartialEq<Rule> for Rule[src]

impl Resource for Rule[src]

impl StructuralEq for Rule[src]

impl StructuralPartialEq for Rule[src]

Auto Trait Implementations

impl RefUnwindSafe for Rule

impl Send for Rule

impl Sync for Rule

impl Unpin for Rule

impl UnwindSafe for Rule

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.