Last active
March 17, 2018 16:10
-
-
Save sean3z/282f09f95a2482d9e2f8d694a9c722de to your computer and use it in GitHub Desktop.
A first stab at our Hero model
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
#[derive(Serialize, Deserialize)] | |
pub struct Hero { | |
pub id: Option<i32>, | |
pub name: String, | |
pub identity: String, | |
pub hometown: String, | |
pub age: i32 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment