Struct huelib::resource::schedule::Schedule [−][src]
pub struct Schedule {
pub id: String,
pub name: String,
pub description: String,
pub command: Command,
pub local_time: String,
pub start_time: Option<NaiveDateTime>,
pub status: Status,
pub auto_delete: Option<bool>,
}
Expand description
Schedule of a resource.
Fields
id: String
Identifier of the schedule.
name: String
Name of the schedule.
description: String
Description of the schedule.
command: Command
Action to execute when the scheduled event occurs.
local_time: String
Time when the scheduled event will occur.
start_time: Option<NaiveDateTime>
UTC time that the timer was started. Only provided for timers.
status: Status
Status of the schedule.
auto_delete: Option<bool>
Whether the schedule will be removed after it expires.
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 Schedule
impl UnwindSafe for Schedule
Blanket Implementations
Mutably borrows from an owned value. Read more