Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Add event type
Browse files Browse the repository at this point in the history
  • Loading branch information
rnijveld committed May 27, 2024
1 parent 7486273 commit 73f73dd
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 0 deletions.
82 changes: 82 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ publish = true
description = "An OpenADR 3.0 VTN/VEN implementation"

[dependencies]
serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0.117"
40 changes: 40 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum Event {
Simple,
Price,
ChargeStateSetpoint,
DispatchSetpoint,
DispatchSetpointRelative,
ControlSetpoint,
ExportPrice,
GHG,
Curve,
OLS,
ImportCapacitySubscription,
ImportCapacityReservation,
ImportCapacityReservationFee,
ImportCapacityAvailable,
ImportCapacityAvailablePrice,
ExportCapacitySubscription,
ExportCapacityReservation,
ExportCapacityReservationFee,
ExportCapacityAvailable,
ExportCapacityAvailablePrice,
ImportCapacityLimit,
ExportCapacityLimit,
AlertGridEmergency,
AlertBlackStart,
AlertPossibleOutage,
AlertFlexAlert,
AlertFire,
AlertFreezing,
AlertWind,
AlertTsunami,
AlertAirQuality,
AlertOther,
CTA2045Reboot,
CTA2045SetOverrideStatus,
}

0 comments on commit 73f73dd

Please sign in to comment.