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
17
use serde::{Deserialize, Serialize};

/// RTSP stream URLs for the camera.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[cfg_attr(feature = "python", pyo3::prelude::pyclass(from_py_object, get_all))]
pub struct RtspStreamUrl {
    /// High-definition H.264 stream URL (stream1).
    pub hd: String,
    /// Standard-definition H.264 stream URL (stream2).
    pub sd: String,
    /// Motion JPEG stream URL (stream8). Suitable for frame-by-frame capture
    /// without an H.264 decoder; each frame is a self-contained JPEG.
    pub mjpeg: String,
}

#[cfg(feature = "python")]
crate::impl_to_dict!(RtspStreamUrl);