diff options
author | D. Scott Boggs <scott@tams.tech> | 2023-02-13 04:53:12 -0500 |
---|---|---|
committer | D. Scott Boggs <scott@tams.tech> | 2023-02-13 05:53:35 -0500 |
commit | a78e2b60a66a5960df9a92606438e28c1aa18114 (patch) | |
tree | 123b270a9ef0904af7968d4c211b53bf74a302cf | |
parent | 887671e64ceee6918f0cd26fe61941c13a46b656 (diff) |
fix serde renamecomb-entities/second-pass/serde_rename
-rw-r--r-- | entities/src/auth/scopes.rs | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/entities/src/auth/scopes.rs b/entities/src/auth/scopes.rs index ccc7124..ca7f8c4 100644 --- a/entities/src/auth/scopes.rs +++ b/entities/src/auth/scopes.rs @@ -360,39 +360,29 @@ impl Default for Scope { /// Represents the granular "read:___" oauth scopes #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, IsVariant)] +#[serde(rename_all = "lowercase")] pub enum Read { /// Accounts - #[serde(rename = "accounts")] Accounts, /// Blocks - #[serde(rename = "blocks")] Blocks, /// Favourites - #[serde(rename = "favourites")] Favourites, /// Filters - #[serde(rename = "filters")] Filters, /// Follows - #[serde(rename = "follows")] Follows, /// Lists - #[serde(rename = "lists")] Lists, /// Mutes - #[serde(rename = "mutes")] Mutes, /// Notifications - #[serde(rename = "notifications")] Notifications, /// Reports - #[serde(rename = "reports")] Reports, /// Search - #[serde(rename = "search")] Search, /// Statuses - #[serde(rename = "statuses")] Statuses, } @@ -455,39 +445,29 @@ impl fmt::Display for Read { /// Represents the granular "write:___" oauth scopes #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, IsVariant)] +#[serde(rename_all = "lowercase")] pub enum Write { /// Accounts - #[serde(rename = "accounts")] Accounts, /// Blocks - #[serde(rename = "blocks")] Blocks, /// Favourites - #[serde(rename = "favourites")] Favourites, /// Filters - #[serde(rename = "filters")] Filters, /// Follows - #[serde(rename = "follows")] Follows, /// Lists - #[serde(rename = "lists")] Lists, /// Media - #[serde(rename = "media")] Media, /// Mutes - #[serde(rename = "mutes")] Mutes, /// Notifications - #[serde(rename = "notifications")] Notifications, /// Reports - #[serde(rename = "reports")] Reports, /// Statuses - #[serde(rename = "statuses")] Statuses, } |