Skip to content

Commit

Permalink
Change for serialization for IntegrityTagSpec
Browse files Browse the repository at this point in the history
Have the string representation match that for D-Bus API.

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Dec 23, 2024
1 parent 03c1cd5 commit 9437326
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/engine/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,13 @@ pub enum StratSigblockVersion {
)]
pub enum IntegrityTagSpec {
#[strum(serialize = "0b")]
#[serde(rename = "0b")]
B0,
#[strum(serialize = "32b")]
#[serde(rename = "32b")]
B32,
#[strum(serialize = "512b")]
#[serde(rename = "512b")]
B512,
}

Expand Down

0 comments on commit 9437326

Please sign in to comment.