Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 432 Bytes
use serde::{Deserialize, Serialize};
#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct PubMessage {
pub channel: String,
pub payload: String,
}
#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct AckMessage {
ack: bool,
}
impl AckMessage {
pub fn new() -> Self {
Self { ack: true }
}
}
#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct Subscribe {
pub channel: String,
}
You can’t perform that action at this time.