use derive_more::{AsMut, AsRef, Deref, From, FromStr, Into};
use serde::{Deserialize, Serialize};
#[cfg(feature = "speedy")]
use speedy::{Readable, Writable};
#[derive(
AsMut, AsRef, Clone, Debug, Deref, Deserialize, Eq, From, FromStr, Into, PartialEq, Serialize,
)]
#[cfg_attr(feature = "speedy", derive(Readable, Writable))]
pub struct SubscriptionId(pub String);
impl SubscriptionId {
#[allow(dead_code)]
pub(crate) fn mock() -> SubscriptionId {
SubscriptionId("lk234js09".to_owned())
}
}
#[cfg(test)]
mod test {
use super::*;
test_serde! {SubscriptionId, test_subscription_id_serde}
}