pub struct SysNotice {
pub id: Option<u32>,
pub content: Option<String>,
pub url: Option<String>,
pub notice_type: Option<u8>,
pub icon: Option<String>,
pub text_color: Option<String>,
pub bg_color: Option<String>,
}Expand description
系统通知
Fields§
§id: Option<u32>通知id
content: Option<String>显示文案
url: Option<String>跳转地址
notice_type: Option<u8>提示类型
icon: Option<String>前缀图标
text_color: Option<String>文字颜色
bg_color: Option<String>背景颜色
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SysNotice
impl<'de> Deserialize<'de> for SysNotice
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 SysNotice
impl RefUnwindSafe for SysNotice
impl Send for SysNotice
impl Sync for SysNotice
impl Unpin for SysNotice
impl UnwindSafe for SysNotice
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