From ac8b0410d76a437c66b71509fd4f2d7d94cbb58d Mon Sep 17 00:00:00 2001 From: vextrixes <113197359+vextrixes@users.noreply.github.com> Date: Sun, 25 Oct 2026 14:31:35 +0100 Subject: [PATCH] added gdpr --- src/gdpr.rs | 19 +++++++++++++++++++ src/lib.rs | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 src/gdpr.rs diff --git a/src/gdpr.rs b/src/gdpr.rs new file mode 100644 index 0000000..8809277 --- /dev/null +++ b/src/gdpr.rs @@ -0,0 +1,19 @@ +use serde::{Deserialize, Serialize}; + +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(rename_all = "PascalCase")] +pub struct GDPRcommissioners { + pub commissioners: Vec, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(rename_all = "PascalCase")] +pub struct GDPRcommissioner { + pub id: String, + pub name: String, + pub mobile: String, + pub phone: String, + pub email: String, + pub web: String, + pub data_box: String, +} diff --git a/src/lib.rs b/src/lib.rs index 1fb70d5..ebd3012 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,6 +3,7 @@ mod api_info; mod attachment; mod error; mod events; +mod gdpr; mod homework; mod marks; mod payments; @@ -17,6 +18,7 @@ pub use api_info::ApiInfo; pub use attachment::Attachment; pub use error::Error; pub use events::Events; +pub use gdpr::{GDPRcommissioner, GDPRcommissioners}; pub use homework::{Homework, HomeworkListItem}; pub use marks::{Mark, Marks, SubjectMarks}; pub use payments::{AddBalance, ClassfundPayments, ClassfundSummary, Payment, PaymentMonthlyData};