Started work on fullfillment of requests

This commit is contained in:
2022-12-14 05:30:46 +01:00
parent e4369ebf41
commit 36cd0e9b61
14 changed files with 1100 additions and 67 deletions

View File

@@ -7,7 +7,7 @@ use uuid::Uuid;
#[derive(Debug, Deserialize)]
#[serde(tag = "intent", content = "payload")]
enum Intent {
pub enum Intent {
#[serde(rename = "action.devices.SYNC")]
Sync,
#[serde(rename = "action.devices.QUERY")]
@@ -18,7 +18,7 @@ enum Intent {
#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
struct Request {
pub struct Request {
pub request_id: Uuid,
pub inputs: Vec<Intent>,
}