Skip to content

Commit

Permalink
fix!: correctly name profile icon struct
Browse files Browse the repository at this point in the history
  • Loading branch information
kade-robertson committed Feb 4, 2023
1 parent a53151f commit 60f3dd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/models/profile_icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ use super::shared::{has_image, Image};
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
pub struct ProfileIcons {
pub version: String,
pub data: HashMap<String, Datum>,
pub data: HashMap<String, ProfileIcon>,
}

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
pub struct Datum {
pub struct ProfileIcon {
pub id: Id,
pub image: Image,
}

has_image!(Datum);
has_image!(ProfileIcon);

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(untagged)]
Expand Down

0 comments on commit 60f3dd6

Please sign in to comment.