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};