bolt_proto/message/
discard.rs

1use std::collections::HashMap;
2
3use bolt_proto_derive::*;
4
5use crate::{impl_message_with_metadata, impl_try_from_message, message::SIGNATURE_DISCARD, Value};
6
7#[bolt_structure(SIGNATURE_DISCARD)]
8#[derive(Debug, Clone, Eq, PartialEq)]
9pub struct Discard {
10    pub(crate) metadata: HashMap<String, Value>,
11}
12
13impl_message_with_metadata!(Discard);
14impl_try_from_message!(Discard, Discard);