31 lines
572 B
Rust
31 lines
572 B
Rust
#![allow(non_camel_case_types, unused)]
|
|
|
|
use crate::control::ProtocolId;
|
|
|
|
pub struct Pull {
|
|
protocol_id: ProtocolId,
|
|
node_id: String,
|
|
uuid: String,
|
|
hashmap_id: String,
|
|
}
|
|
|
|
#[derive(Debug)]
|
|
pub struct Push<T> {
|
|
protocol_id: ProtocolId,
|
|
node_id: String,
|
|
uuid: String,
|
|
hashmap_id: String,
|
|
length_decomp: i64,
|
|
length_comp: i64,
|
|
comp_format: String,
|
|
attributes: Option<T>,
|
|
data: String,
|
|
}
|
|
|
|
pub struct Response {
|
|
protocol_id: ProtocolId,
|
|
node_id: String,
|
|
uuid: String,
|
|
hashmap_id: String,
|
|
status: String,
|
|
}
|