feat: implement serde_dynamo for all possible functions

This commit is contained in:
alphafetus committed 2025-08-29 09:21:33 -04:00
1 parent 1595553cc5
commit 42d2041a4f
4 files changed
+72 -92

No files matched your search

+18 -5
View File
@@ -1,10 +1,23 @@
use macros::Reactive;
use serde::{Deserialize, Serialize};
use std::default::Default;
#[derive(Serialize, Deserialize, Debug, Clone, Reactive)]
/// Represents information about a student.
#[derive(Serialize, Deserialize, Debug, Clone, Reactive, Default)]
pub struct StudentInfo {
pub first_name: String,
pub last_name: String,
pub math_sat_score: i32,
pub student_email: String,
/// The email address of the student. This was used in the previous version of the database,
/// and should now be deprecated.
pub Email: String,
/// The student's first name.
#[serde(default)]
pub studentFirstName: String,
/// The student's last name.
#[serde(default)]
pub studentLastName: String,
/// The student's highest math score on the SAT.
#[serde(default)]
pub mathScoreSAT: i32,
/// The student's desired contact email.
#[serde(default)]
pub studentEmail: String,
}