eeg_certs/backend/src/model/person.rs

25 lines
562 B
Rust

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