Skip to content

Instantly share code, notes, and snippets.

@Mr-Malomz
Created September 26, 2022 19:14
Show Gist options
  • Save Mr-Malomz/2c7da457f709fdb4d5370aa0d3db1565 to your computer and use it in GitHub Desktop.
Save Mr-Malomz/2c7da457f709fdb4d5370aa0d3db1565 to your computer and use it in GitHub Desktop.
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