macro_rules! vch {
    ( ) => { ... };
    ( $( $attr:expr ),* ) => { ... };
}
Expand description

Creates a “Voucher” instance with a known list of attributes.

Examples

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);