aqara 0.1.1

Aqara SDK for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! IFTTT metadata query request types.

/// Parameters for `query.ifttt.trigger` / `query.ifttt.action`.
#[derive(Clone, Debug)]
#[non_exhaustive]
pub struct IftttModelsParams {
    /// Model list.
    pub models: Vec<String>,
}

impl IftttModelsParams {
    /// Create params.
    pub fn new(models: impl Into<Vec<String>>) -> Self {
        Self {
            models: models.into(),
        }
    }
}