removed old error types
This commit is contained in:
2 files changed
+1
-30
No files matched your search
@@ -1,24 +0,0 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "PascalCase")]
|
||||
pub struct Error {
|
||||
pub message: String,
|
||||
pub model_state: ModelState,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct ModelState {
|
||||
#[serde(rename = "$type")]
|
||||
pub type_name: String,
|
||||
#[serde(rename = "from")]
|
||||
pub from: StringArray,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct StringArray {
|
||||
#[serde(rename = "$type")]
|
||||
pub type_name: String,
|
||||
#[serde(rename = "$values")]
|
||||
pub values: Vec<String>,
|
||||
}
|
||||
+1
-6
@@ -3,7 +3,6 @@ mod others;
|
||||
//campaign
|
||||
mod auth;
|
||||
mod endpoints;
|
||||
mod error;
|
||||
mod events;
|
||||
mod gdpr;
|
||||
//komens
|
||||
@@ -24,7 +23,6 @@ mod user;
|
||||
pub use absence::*;
|
||||
pub use auth::*;
|
||||
pub use endpoints::*;
|
||||
pub use error::{Error, ModelState, StringArray};
|
||||
pub use events::*;
|
||||
pub use gdpr::*;
|
||||
pub use homework::*;
|
||||
@@ -32,10 +30,7 @@ pub use marks::*;
|
||||
pub use others::*;
|
||||
pub use payments::*;
|
||||
pub use semester::*;
|
||||
pub use stdtype::{
|
||||
Room, RoomSet, SchoolClass, SchoolClassSet, StdClassGroup, StdType, StdTypeNullable, Student,
|
||||
Teacher, TeacherSet, TimetableStudent,
|
||||
};
|
||||
pub use stdtype::*;
|
||||
pub use subjects::*;
|
||||
pub use substitutions::*;
|
||||
pub use teaching::*;
|
||||
|
||||
Reference in new issue
Block a user