changed backedn framwork from axum to actix and also added openapi and swagger ui
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
use apistos::ApiComponent;
|
||||
use chrono::{DateTime, Local};
|
||||
use schemars::JsonSchema;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ApiComponent)]
|
||||
pub struct Alarm {
|
||||
enabled: bool,
|
||||
time: DateTime<Local>,
|
||||
pub enabled: bool,
|
||||
pub time: DateTime<Local>,
|
||||
}
|
||||
|
||||
impl Alarm {
|
||||
|
||||
Reference in New Issue
Block a user