Added some structs
This commit is contained in:
31
src/types.rs
Normal file
31
src/types.rs
Normal file
@@ -0,0 +1,31 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct ItemCases {
|
||||
pub item: i64,
|
||||
pub case: i64,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct DataUuid {
|
||||
pub uuid: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
pub struct Case {
|
||||
pub id: i64,
|
||||
pub uuid: String,
|
||||
pub name: String,
|
||||
pub image: String,
|
||||
pub price: f64,
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
pub struct Item {
|
||||
pub id: i64,
|
||||
pub uuid: String,
|
||||
pub name: String,
|
||||
pub rarity: i64,
|
||||
pub image: String,
|
||||
pub price: f64,
|
||||
}
|
||||
Reference in New Issue
Block a user