mod id;
use core::fmt::{self, Display};
use serde::{Deserialize, Serialize};
pub use self::id::Id;
use crate::{prelude::*, serializers};
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct Channel {
#[serde(rename = "ID")]
pub id: Id,
#[serde(rename = "SendQueueCapacity", with = "serializers::from_str")]
pub send_queue_capacity: u64,
#[serde(rename = "SendQueueSize", with = "serializers::from_str")]
pub send_queue_size: u64,
#[serde(rename = "Priority", with = "serializers::from_str")]
pub priority: u64,
#[serde(rename = "RecentlySent", with = "serializers::from_str")]
pub recently_sent: u64,
}
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)]
pub struct Channels(String);
impl Display for Channels {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
}
}