tailor_api 0.2.1

API types for communication with tailord (part of tuxedo-rs)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Debug, Clone, Hash, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct LedDeviceInfo {
    pub device_name: String,
    pub function: String,
}

impl LedDeviceInfo {
    pub fn device_id(&self) -> String {
        let Self {
            device_name,
            function,
        } = self;
        format!("{device_name}::{function}")
    }
}