common.rs (351B)
1 use minicbor::{Decode, Encode}; 2 use std::borrow::Cow; 3 4 #[derive(Encode, Decode, Debug)] 5 pub(crate) struct Unsigned<'a, Content> { 6 #[b(0)] 7 pub(crate) age: u64, 8 #[b(1)] 9 pub(crate) transaction_id: Cow<'a, str>, 10 #[b(2)] 11 pub(crate) prev_content: Option<Content>, 12 #[b(3)] 13 pub(crate) redacted_because: Option<Cow<'a, str>>, 14 }