use crate::data::channel;
use crate::data::object::Object;
use crate::data::presence;
use crate::data::timetoken::Timetoken;
use crate::data::uuid::UUID;
use std::marker::PhantomData;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Publish {
pub channel: channel::Name,
pub payload: Object,
pub meta: Option<Object>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Subscribe {
pub channels: Vec<channel::Name>,
pub channel_groups: Vec<channel::Name>,
pub timetoken: Timetoken,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct SetState {
pub channels: Vec<channel::Name>,
pub channel_groups: Vec<channel::Name>,
pub uuid: UUID,
pub state: Object,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct GetState {
pub channels: Vec<channel::Name>,
pub channel_groups: Vec<channel::Name>,
pub uuid: UUID,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct HereNow<TRespondWith>
where
TRespondWith: presence::respond_with::RespondWith,
{
pub channels: Vec<channel::Name>,
pub channel_groups: Vec<channel::Name>,
pub respond_with: PhantomData<TRespondWith>,
}
#[allow(missing_copy_implementations)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct GlobalHereNow<TRespondWith>
where
TRespondWith: presence::respond_with::RespondWith,
{
pub respond_with: PhantomData<TRespondWith>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct WhereNow {
pub uuid: UUID,
}