-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7121963
commit 8faaf87
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
pub mod challenges; | ||
pub mod champions; | ||
pub mod items; | ||
pub mod runes; | ||
pub mod shared; | ||
pub mod translations; | ||
|
||
pub use challenges::Challenges; | ||
pub use champions::Champions; | ||
pub use items::Items; | ||
pub use runes::Runes; | ||
pub use translations::Translations; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use serde::{Deserialize, Serialize}; | ||
pub type Runes = Vec<Rune>; | ||
|
||
#[derive(Serialize, Deserialize)] | ||
pub struct Rune { | ||
pub id: i64, | ||
pub key: String, | ||
pub icon: String, | ||
pub name: String, | ||
pub slots: Vec<Slot>, | ||
} | ||
|
||
#[derive(Serialize, Deserialize)] | ||
pub struct Slot { | ||
pub runes: Vec<RuneElement>, | ||
} | ||
|
||
#[derive(Serialize, Deserialize)] | ||
pub struct RuneElement { | ||
pub id: i64, | ||
pub key: String, | ||
pub icon: String, | ||
pub name: String, | ||
#[serde(rename = "shortDesc")] | ||
pub short_desc: String, | ||
#[serde(rename = "longDesc")] | ||
pub long_desc: String, | ||
} |