Skip to content

Commit

Permalink
🐛 Apparently, price may be negative
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenein committed Jul 31, 2024
1 parent 6ac6baf commit 03950d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/marktplaats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub struct Listing {
#[derive(Deserialize)]
pub struct SellerInformation {
#[serde(alias = "sellerId")]
pub id: i32,
pub id: u32,

#[serde(alias = "sellerName")]
pub name: String,
Expand All @@ -87,7 +87,7 @@ impl Listing {
#[derive(Deserialize)]
pub struct PriceInfo {
#[serde(alias = "priceCents")]
pub cents: u32,
pub cents: i32,

#[serde(alias = "priceType")]
pub type_: PriceType,
Expand Down

0 comments on commit 03950d7

Please sign in to comment.