Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pub enum Message {
- Encrypted {
- ciphertext: String,
- hmac: String,
- iv: String,
- },
- Unencrypted {
- cleartext: String,
- },
- }
- fn log_cleartext(m: &Message) {
- println!("Message cleartext: {}", m.cleartext);
- }
- fn main() {
- println!("Hello, world!");
- }
Add Comment
Please, Sign In to add comment