bcinr-cmca 26.10.11

CMCA-RDF deterministic substrate crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct ReplayKey<'a> {
    pub subject: &'a str,
    pub effect_id: &'a str,
    pub replay_id: &'a str,
}
impl ReplayKey<'_> {
    pub const fn same_attempt(&self, other: &Self) -> bool {
        self.subject.len() == other.subject.len()
            && self.effect_id.len() == other.effect_id.len()
            && self.replay_id.len() == other.replay_id.len()
    }
}