1 2 3 4 5 6 7 8 9 10 11 12
jbk::variants! { EntryType { Content => "content", Redirect => "redirect" } } impl From<EntryType> for jbk::VariantIdx { fn from(t: EntryType) -> Self { (t as u8).into() } }