Skip to content

Commit

Permalink
fix: deserialization of ElementType
Browse files Browse the repository at this point in the history
  • Loading branch information
Braeulias committed Oct 18, 2024
1 parent 5fea7e9 commit f25a133
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ chrono = "0.4"
reqwest = { version = "0.12", features = ["cookies", "json", "blocking"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_repr = "0.1.19"
3 changes: 2 additions & 1 deletion src/resources.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use crate::datetime::{Date, Time};
use serde::{Deserialize, Serialize};
use serde_repr::*;
use std::collections::HashMap;

/// The different types of elements that exist in the Untis API.
#[derive(Serialize, Deserialize, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)]
#[derive(Serialize_repr, Deserialize_repr, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)]
#[repr(u8)]
pub enum ElementType {
Class = 1,
Expand Down

0 comments on commit f25a133

Please sign in to comment.