Skip to main content

tapo/responses/
trigger_logs_result.rs

1use serde::Deserialize;
2
3use super::TapoResponseExt;
4
5/// Trigger logs result.
6#[derive(Debug, Deserialize)]
7pub struct TriggerLogsResult<T> {
8    /// The `id` of the most recent log item that is returned.
9    pub start_id: u64,
10    /// The total number of log items that the hub holds for this device.
11    pub sum: u64,
12    /// Log items in reverse chronological order (newest first).
13    pub logs: Vec<T>,
14}
15
16impl<T> TapoResponseExt for TriggerLogsResult<T> {}