twilight_model/gateway/payload/incoming/channel_delete.rs
use crate::channel::Channel;
use serde::{Deserialize, Serialize};
use std::ops::{Deref, DerefMut};
#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
pub struct ChannelDelete(pub Channel);
impl Deref for ChannelDelete {
type Target = Channel;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl DerefMut for ChannelDelete {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}