holochain_types/dna/ribosome_store.rs
1use crate::prelude::*;
2
3/// Key for the [EntryDef] buffer
4#[derive(
5 Debug, Clone, Eq, PartialEq, Hash, Ord, PartialOrd, Serialize, Deserialize, SerializedBytes,
6)]
7pub struct EntryDefBufferKey {
8 /// The zome to which this entry def belongs
9 pub zome: IntegrityZomeDef,
10 /// The index, for ordering
11 pub entry_def_position: EntryDefIndex,
12}
13
14impl EntryDefBufferKey {
15 /// Create a new key
16 pub fn new(zome: IntegrityZomeDef, entry_def_position: EntryDefIndex) -> Self {
17 Self {
18 zome,
19 entry_def_position,
20 }
21 }
22}