Skip to content

Commit

Permalink
Lint checks and review
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Murphy committed Jan 31, 2021
1 parent 9b29143 commit 0fac163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/public/activity/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ pub struct LogEntry {

#[derive(Serialize)]
struct ListParams {
#[serde(rename = "user")]
pub user_id: Option<u64>,
pub start: u64,
pub end: Option<u64>,
Expand Down
6 changes: 3 additions & 3 deletions src/public/dataset/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub struct Policy {
pub users: Option<Vec<u64>>,

/// List of virtual Ids the policy applies to
pub virtualUsers: Option<Vec<String>>,
pub virtual_users: Option<Vec<String>>,

/// List of group IDs the policy applies to
pub groups: Option<Vec<String>>,
Expand All @@ -157,7 +157,7 @@ impl Policy {
policy_type: None,
filters: None,
users: None,
virtualUsers: None,
virtual_users: None,
groups: None,
}
}
Expand All @@ -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")]),
}
}
Expand Down

0 comments on commit 0fac163

Please sign in to comment.