hc_deepkey_types/change_rule.rs
1use hdi::prelude::*;
2
3use crate::AuthorizedSpecChange;
4
5// The author needs to be linked from the KeysetRoot
6#[hdk_entry_helper]
7#[derive(Clone)]
8pub struct ChangeRule {
9 pub keyset_root: ActionHash,
10 pub spec_change: AuthorizedSpecChange,
11}
12
13impl ChangeRule {
14 pub fn new(keyset_root: ActionHash, spec_change: AuthorizedSpecChange) -> Self {
15 Self {
16 keyset_root,
17 spec_change,
18 }
19 }
20}