bcinr-cmca 26.10.11

CMCA-RDF deterministic substrate crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct OcelEvent<'a> {
    pub event_type: &'a str,
    pub subject: &'a str,
    pub effect_id: &'a str,
    pub replay_id: &'a str,
}
impl<'a> OcelEvent<'a> {
    pub const fn receipt(subject: &'a str, effect_id: &'a str, replay_id: &'a str) -> Self {
        Self {
            event_type: "sa2a.receipt",
            subject,
            effect_id,
            replay_id,
        }
    }
}