1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use borsh::BorshSerialize;

use crate::DigestIdentifier;

use super::errors::SubjectError;

pub mod approval;
pub mod evaluation;
pub mod event;
pub mod notification;
pub mod request;
pub mod signature;
pub mod state;
pub mod timestamp;
pub mod validation;
pub mod value_wrapper;

pub trait HashId: BorshSerialize {
    fn hash_id(&self) -> Result<DigestIdentifier, SubjectError>;
}