This commit is contained in:
vextrixes committed 2026-10-25 14:58:00 +01:00
1 parent ee9db9865e
commit 6b8ac4664d
6 files changed
+25 -14

No files matched your search

+4 -4
View File
@@ -3,8 +3,8 @@ use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct Attachment {
id: String,
name: String,
r#type: String,
size: u64,
pub id: String,
pub name: String,
pub r#type: String,
pub size: u64,
}
+1 -1
View File
@@ -18,7 +18,7 @@ pub use absence::{Absence, AbsenceListItem, SubjectAbsence};
pub use api_info::ApiInfo;
pub use attachment::Attachment;
pub use error::Error;
pub use events::Events;
pub use events::{Event, Events, Time};
pub use gdpr::{GDPRcommissioner, GDPRcommissioners};
pub use homework::{Homework, HomeworkListItem};
pub use marks::{Mark, Marks, SubjectMarks};
+9
View File
@@ -1,10 +1,19 @@
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use crate::StdType;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct Marks {
pub subjects: Vec<SubjectMarks>,
pub subject: StdType,
pub average_text: String,
pub temporary_mark: String,
pub subject_note: String,
pub temporary_mark_note: String,
pub points_only: bool,
pub mark_prediction_enabled: bool,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
+2
View File
@@ -31,6 +31,8 @@ pub struct Payment {
pub amount: i64,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct AddBalance {
pub instructions: String,
pub bank_account: String,
+4 -4
View File
@@ -34,8 +34,8 @@ pub struct Module {
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct Student {
full_name: String,
class: Vec<StdType>,
school_type: String,
study_year: u8,
pub full_name: String,
pub class: Vec<StdType>,
pub school_type: String,
pub study_year: u8,
}
+5 -5
View File
@@ -6,11 +6,11 @@ use crate::StdType;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct WhatIfStartingEnviromentMark {
id: String,
mark_text: String,
weight: u8,
max_points: u16,
subject_id: String,
pub id: String,
pub mark_text: String,
pub weight: u8,
pub max_points: u16,
pub subject_id: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]