tapo 0.9.0

Unofficial Tapo API Client. Works with TP-Link Tapo smart devices. Tested with light bulbs (L510, L520, L530, L535, L610, L630), light strips (L900, L920, L930), plugs (P100, P105, P110, P110M, P115), power strips (P300, P304M, P306, P316M), hubs (H100), switches (S200B, S200D, S210) and sensors (KE100, T100, T110, T300, T310, T315).
Documentation
use chrono::NaiveDate;

/// Energy data interval.
pub enum EnergyDataInterval {
    /// Hourly interval. `start_date` and `end_date` are an inclusive interval that must not be greater than 8 days.
    Hourly {
        /// Interval start date.
        start_date: NaiveDate,
        /// Interval end date. Inclusive.
        /// Must not be greater by more than 8 days than `start_date`.
        end_date: NaiveDate,
    },
    /// Daily interval. `start_date` must be the first day of a quarter.
    Daily {
        /// Must be the first day of a quarter.
        start_date: NaiveDate,
    },
    /// Monthly interval. `start_date` must be the first day of a year.
    Monthly {
        /// Must be the first day of a year.
        start_date: NaiveDate,
    },
}