feat: create impromptu demo page
This commit is contained in:
1 parent
8c46ad5dfd
commit
4fc01acd50
14 files changed
+169
-120
No files matched your search
@@ -1,6 +1,8 @@
|
||||
use crate::components::MultiEntryData;
|
||||
use macros::Reactive;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::default::Default;
|
||||
use chrono::{DateTime, Utc};
|
||||
|
||||
/// Represents information about a student.
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Reactive, Default)]
|
||||
@@ -22,4 +24,22 @@ pub struct StudentInfo {
|
||||
/// The student's desired contact email.
|
||||
#[serde(default)]
|
||||
pub contact_email: String,
|
||||
/// The student's address.
|
||||
#[serde(default)]
|
||||
pub address: String,
|
||||
/// The student's town of residence.
|
||||
#[serde(default)]
|
||||
pub town: String,
|
||||
/// The student's entered phone number.
|
||||
#[serde(default)]
|
||||
pub phone_number: String, // May be stored as a straight number in the future.
|
||||
/// The student's birthdate.
|
||||
#[serde(default)]
|
||||
pub birth_date: DateTime<Utc>,
|
||||
/// The student's gender.
|
||||
#[serde(default)]
|
||||
pub gender: String,
|
||||
/// The student's athletic information.
|
||||
#[serde(default)]
|
||||
pub athletic_info: Vec<MultiEntryData>,
|
||||
}
|
||||
Reference in new issue
Block a user