From 0fac163310075835c5717d1066288305b17959e3 Mon Sep 17 00:00:00 2001 From: Sean Murphy Date: Sun, 31 Jan 2021 00:45:46 -0800 Subject: [PATCH] Lint checks and review --- src/public/activity/mod.rs | 1 + src/public/dataset/mod.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/public/activity/mod.rs b/src/public/activity/mod.rs index 536404d..3168ee4 100644 --- a/src/public/activity/mod.rs +++ b/src/public/activity/mod.rs @@ -52,6 +52,7 @@ pub struct LogEntry { #[derive(Serialize)] struct ListParams { + #[serde(rename = "user")] pub user_id: Option, pub start: u64, pub end: Option, diff --git a/src/public/dataset/mod.rs b/src/public/dataset/mod.rs index f87837b..d393354 100644 --- a/src/public/dataset/mod.rs +++ b/src/public/dataset/mod.rs @@ -143,7 +143,7 @@ pub struct Policy { pub users: Option>, /// List of virtual Ids the policy applies to - pub virtualUsers: Option>, + pub virtual_users: Option>, /// List of group IDs the policy applies to pub groups: Option>, @@ -157,7 +157,7 @@ impl Policy { policy_type: None, filters: None, users: None, - virtualUsers: None, + virtual_users: None, groups: None, } } @@ -174,7 +174,7 @@ impl Policy { values: vec![String::from("values in this column that match will apply")], }]), users: Some(vec![27]), - virtualUsers: Some(vec![String::from("vu:324ds")]), + virtual_users: Some(vec![String::from("vu:324ds")]), groups: Some(vec![String::from("15")]), } }