Created
September 26, 2022 19:14
-
-
Save Mr-Malomz/2c7da457f709fdb4d5370aa0d3db1565 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
use serde::Deserialize; | |
#[derive(Clone, Deserialize, PartialEq)] | |
#[serde(rename_all = "camelCase")] | |
pub struct User { | |
pub first_name: String, | |
pub last_name: String, | |
pub email: String, | |
pub gender: String, | |
pub phone: String, | |
} | |
#[derive(Clone, Deserialize, PartialEq)] | |
pub struct Users { | |
pub users: Vec<User> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment