1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use crate::shared::newtypes::Blake2bHash;
#[derive(Debug)]
pub struct InsertedTrieKeyAndMissingDescendants {
inserted_trie_key: Blake2bHash,
missing_descendant_trie_keys: Vec<Blake2bHash>,
}
impl InsertedTrieKeyAndMissingDescendants {
pub(crate) fn new(
inserted_trie_key: Blake2bHash,
missing_descendant_trie_keys: Vec<Blake2bHash>,
) -> Self {
InsertedTrieKeyAndMissingDescendants {
inserted_trie_key,
missing_descendant_trie_keys,
}
}
pub fn inserted_trie_key(&self) -> Blake2bHash {
self.inserted_trie_key
}
pub fn into_missing_descendant_trie_keys(self) -> Vec<Blake2bHash> {
self.missing_descendant_trie_keys
}
}