Skip to content

Commit

Permalink
fix user rep i64
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenya-DK committed Apr 3, 2024
1 parent 977dbd1 commit 8fb8ee6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src-tauri/src/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use serde::{de::DeserializeOwned, Deserialize, Deserializer, Serialize};

use crate::enums::OrderType;

#[derive(PartialEq, Eq, Hash,Debug)]
#[derive(PartialEq, Eq, Hash, Debug)]
pub enum WarframeLanguage {
English, // Add other language variants as needed
French,
Expand All @@ -11,7 +11,7 @@ pub enum WarframeLanguage {
Russian,
Unknown,
}
#[derive(Clone,Serialize,Deserialize, PartialEq, Eq, Hash,Debug)]
#[derive(Clone, Serialize, Deserialize, PartialEq, Eq, Hash, Debug)]
pub enum TradeClassification {
Sale,
Purchase,
Expand All @@ -34,7 +34,7 @@ impl WarframeLanguage {
"ru" => WarframeLanguage::Russian,
_ => WarframeLanguage::Unknown,
}
}
}
}
#[derive(Clone, Serialize, Deserialize, Debug)]
pub struct RivenTypeInfo {
Expand Down Expand Up @@ -295,7 +295,7 @@ pub struct OrderByItem {
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct User {
#[serde(rename = "reputation")]
pub reputation: i64,
pub reputation: f64,

// #[serde(rename = "locale")]
// pub locale: String,
Expand Down Expand Up @@ -442,4 +442,4 @@ pub struct AuctionOwner {

#[serde(rename = "avatar")]
pub avatar: Option<String>,
}
}

0 comments on commit 8fb8ee6

Please sign in to comment.