1 2 3 4 5 6 7 8 9 10 11
#[derive(Debug, Clone, PartialEq)] pub struct BlockId(pub u64); impl BlockId { pub fn new(id: u64) -> Self { Self(id) } pub fn get(&self) -> u64 { self.0 } }