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