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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::Deserialize;

use super::TapoResponseExt;

/// Trigger logs result.
#[derive(Debug, Deserialize)]
pub struct TriggerLogsResult<T> {
    /// The `id` of the most recent log item that is returned.
    pub start_id: u64,
    /// The total number of log items that the hub holds for this device.
    pub sum: u64,
    /// Log items in reverse chronological order (newest first).
    pub logs: Vec<T>,
}

impl<T> TapoResponseExt for TriggerLogsResult<T> {}