pub struct NotificationSetting {
pub channels: Box<NotificationSettingChannels>,
pub group: Group,
pub type: NotificationSettingType,
}Expand description
NotificationSetting : Статус аккаунта
Fields§
§channels: Box<NotificationSettingChannels>§group: GroupСтрока, указывающая название группы уведомления. Может быть «security», «monitoring» или «finances».
type: NotificationSettingTypeImplementations§
Source§impl NotificationSetting
impl NotificationSetting
Sourcepub fn new(
channels: NotificationSettingChannels,
group: Group,
type: NotificationSettingType,
) -> NotificationSetting
pub fn new( channels: NotificationSettingChannels, group: Group, type: NotificationSettingType, ) -> NotificationSetting
Статус аккаунта
Trait Implementations§
Source§impl Clone for NotificationSetting
impl Clone for NotificationSetting
Source§fn clone(&self) -> NotificationSetting
fn clone(&self) -> NotificationSetting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NotificationSetting
impl Debug for NotificationSetting
Source§impl Default for NotificationSetting
impl Default for NotificationSetting
Source§fn default() -> NotificationSetting
fn default() -> NotificationSetting
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationSetting
impl<'de> Deserialize<'de> for NotificationSetting
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
Source§impl PartialEq for NotificationSetting
impl PartialEq for NotificationSetting
Source§fn eq(&self, other: &NotificationSetting) -> bool
fn eq(&self, other: &NotificationSetting) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NotificationSetting
impl Serialize for NotificationSetting
impl StructuralPartialEq for NotificationSetting
Auto Trait Implementations§
impl Freeze for NotificationSetting
impl RefUnwindSafe for NotificationSetting
impl Send for NotificationSetting
impl Sync for NotificationSetting
impl Unpin for NotificationSetting
impl UnsafeUnpin for NotificationSetting
impl UnwindSafe for NotificationSetting
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