notificationlib/enums/
notification_type.rs

1use serde::Deserialize;
2use serde::Serialize;
3use std::str;
4use postgres::types::{FromSql, ToSql};
5use strum_macros::EnumString;
6
7#[derive(Debug, PartialEq, Clone, Serialize, Deserialize, EnumString)]
8#[derive(ToSql, FromSql)]
9#[postgres(name = "notification_type_enum")]
10pub enum NotificationType {
11    BehaviourRecord,
12    CanteenOrderStatusChange,
13    ChildAbsent,
14    CourseApproved,
15    CourseProgramApproved,
16    CourseProgramRejected,
17    CourseRejected,
18    CurriculumApproved,
19    CurriculumRejected,
20    EmergencyReport,
21    EventSendLocation,
22    EventUpdateSessionAccess,
23    EventVisitSection,
24    FormRequest,
25    IncidentReport,
26    InventoryStuffRequest,
27    InvoiceRefund,
28    LessonPlanApproved,
29    LessonPlanRejected,
30    MedicBooking,
31    Payment,
32    QuizAnswer,
33    QuizPlayStatusChange,
34    QuizStarted,
35    QuizStopped,
36    SecuritySummon,
37    TestApproved,
38    TestGameAccepted,
39    TestGameInvitation,
40    TutorLessonApproved,
41    TutorLessonRejected,
42    TutorNewExercise,
43    TutorNewOrder,
44    TutorOrderApproved,
45    TutorOrderRejected,
46    Other,
47    Whiteboard,
48    TestRejected,
49    StartLesson,
50    EditMark,
51    CreateMark,
52}