From 0dd99ec3c8896a8406deb655707edcb4397633b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Tue, 30 Aug 2022 22:20:38 +0200 Subject: [PATCH] Add plugin info to RegistrationInfo --- src/registration.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/registration.rs b/src/registration.rs index 33a4303..1387f6b 100644 --- a/src/registration.rs +++ b/src/registration.rs @@ -122,6 +122,18 @@ pub struct RegistrationInfoApplication { pub version: String, } +/// Information about the plugin +/// +/// [Official Documentation](https://developer.elgato.com/documentation/stream-deck/sdk/registration-procedure/#info-parameter) +#[derive(Serialize, Deserialize, Debug, Clone)] +#[serde(rename_all = "camelCase")] +pub struct RegistrationInfoPlugin { + /// Version of the plugin as per the manifest + pub version: String, + /// Unique identifier of the plugin + pub uuid: String, +} + /// The user's preferred colors #[derive(Deserialize, Serialize, Debug)] #[serde(rename_all = "camelCase")] @@ -141,6 +153,7 @@ pub struct UserColors { #[serde(rename_all = "camelCase")] pub struct RegistrationInfo { pub application: RegistrationInfoApplication, + pub plugin: RegistrationInfoPlugin, pub device_pixel_ratio: u8, pub devices: Vec, pub colors: UserColors,