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