1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use traits::AutoEncoder; /// Represents some encrypted packed data /// /// Includes nonce, vault iv and blob. This abstraction /// is important to be able to send encrypted records across /// a network. #[derive(Serialize, Deserialize)] pub struct PackedData { pub nonce: Vec<u8>, pub iv: Vec<u8>, pub data: Vec<u8>, } impl AutoEncoder for PackedData {}