pub struct NotificationData {
pub id: String,
pub notification_type: String,
pub title: String,
pub content: String,
pub data: Option<Value>,
pub created_at: String,
}Expand description
通知数据
Fields§
§id: String§notification_type: String§title: String§content: String§data: Option<Value>§created_at: StringTrait Implementations§
Source§impl Clone for NotificationData
impl Clone for NotificationData
Source§fn clone(&self) -> NotificationData
fn clone(&self) -> NotificationData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotificationData
impl Debug for NotificationData
Source§impl<'de> Deserialize<'de> for NotificationData
impl<'de> Deserialize<'de> for NotificationData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NotificationData
impl RefUnwindSafe for NotificationData
impl Send for NotificationData
impl Sync for NotificationData
impl Unpin for NotificationData
impl UnsafeUnpin for NotificationData
impl UnwindSafe for NotificationData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more