Skip to content

Commit

Permalink
features: platform: raspberry: Derive debug
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickelectric committed Mar 13, 2024
1 parent 9a0ddaa commit 70131bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/platform/raspberry.rs
Expand Up @@ -6,22 +6,22 @@ use paperclip::actix::Apiv2Schema;
use serde::Serialize;
use tracing::*;

#[derive(Clone, Serialize, Apiv2Schema)]
#[derive(Clone, Debug, Serialize, Apiv2Schema)]
pub enum EventType {
FrequencyCapping,
TemperatureLimit,
Throttling,
UnderVoltage,
}

#[derive(Clone, Serialize, Apiv2Schema)]
#[derive(Clone, Debug, Serialize, Apiv2Schema)]
pub struct Event {
pub time: chrono::DateTime<chrono::Local>,
#[serde(rename = "type")]
pub typ: EventType,
}

#[derive(Clone, Default, Serialize, Apiv2Schema)]
#[derive(Clone, Debug, Default, Serialize, Apiv2Schema)]
pub struct Events {
pub occurring: Vec<Event>,
pub list: Vec<Event>,
Expand Down

0 comments on commit 70131bc

Please sign in to comment.