macro_rules! vch { ( ) => { ... }; ( $( $attr:expr ),* ) => { ... }; }
Creates a “Voucher” instance with a known list of attributes.
use minerva_voucher::{Voucher, attr::*, vch}; let v = vch![ Attr::Assertion(Assertion::Logged), Attr::SerialNumber(b"00-11-22-33-44-55".to_vec())]; assert!(v.is_vch()); assert_eq!(v.len(), 2);