Select Git revision
participant.rs
thibault.capt authored
participant.rs 356 B
#[derive(Debug)]
pub struct Participant {
pub firstname: String,
pub lastname: String,
pub age: u8
}
impl Participant {
pub fn new(firstname: &str, lastname: &str, age: u8) -> Participant {
Participant {
firstname: String::from(firstname),
lastname: String::from(lastname),
age
}
}
}