pub struct NoticeMsg {
pub command: String,
pub userId: String,
pub content: Option<String>,
pub who: Option<String>,
}Expand description
通知消息
Fields§
§command: String通知类型
userId: String通知接收者用户Id
content: Option<String>全局公告内容,仅 warnBroadcast 有信息
who: Option<String>全局公告发布者,仅 warnBroadcast 有信息
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NoticeMsg
impl<'de> Deserialize<'de> for NoticeMsg
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 NoticeMsg
impl RefUnwindSafe for NoticeMsg
impl Send for NoticeMsg
impl Sync for NoticeMsg
impl Unpin for NoticeMsg
impl UnsafeUnpin for NoticeMsg
impl UnwindSafe for NoticeMsg
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