2023-08-25 16:52:03 +00:00
|
|
|
use rocket::serde::Serialize;
|
|
|
|
|
2023-08-25 22:31:46 +00:00
|
|
|
#[derive(Serialize, Clone)]
|
2023-08-25 16:52:03 +00:00
|
|
|
#[serde(crate = "rocket::serde")]
|
|
|
|
pub struct Person {
|
2023-08-25 22:31:46 +00:00
|
|
|
/// Internal id
|
2023-08-25 16:52:03 +00:00
|
|
|
pub person_id: i32,
|
2023-08-25 22:31:46 +00:00
|
|
|
/// Country-specific id. For now only supports Peru's DNI.
|
|
|
|
///
|
|
|
|
/// Example: `74185293`
|
2023-08-25 16:52:03 +00:00
|
|
|
pub person_dni: String,
|
2023-08-25 22:31:46 +00:00
|
|
|
/// Names
|
|
|
|
///
|
|
|
|
/// Example: `Juan Carlos`
|
2023-08-25 16:52:03 +00:00
|
|
|
pub person_names: String,
|
2023-08-25 22:31:46 +00:00
|
|
|
/// First surname
|
|
|
|
///
|
|
|
|
/// Example: `Perez`
|
2023-08-25 16:52:03 +00:00
|
|
|
pub person_paternal_surname: String,
|
2023-08-25 22:31:46 +00:00
|
|
|
/// Second surname
|
|
|
|
///
|
|
|
|
/// Example: `Gomez`
|
2023-08-25 16:52:03 +00:00
|
|
|
pub person_maternal_surname: String,
|
|
|
|
}
|