pub struct NotificationPreference {
pub type_code: String,
pub channel_in_app: bool,
pub channel_email: bool,
pub channel_sms: bool,
pub channel_push: bool,
}Expand description
通知偏好(按类型+渠道)。
Fields§
§type_code: String§channel_in_app: bool§channel_email: bool§channel_sms: bool§channel_push: boolTrait Implementations§
Source§impl Clone for NotificationPreference
impl Clone for NotificationPreference
Source§impl Debug for NotificationPreference
impl Debug for NotificationPreference
Source§impl Default for NotificationPreference
impl Default for NotificationPreference
Source§impl<'de> Deserialize<'de> for NotificationPreference
impl<'de> Deserialize<'de> for NotificationPreference
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 NotificationPreference
impl RefUnwindSafe for NotificationPreference
impl Send for NotificationPreference
impl Sync for NotificationPreference
impl Unpin for NotificationPreference
impl UnsafeUnpin for NotificationPreference
impl UnwindSafe for NotificationPreference
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