pub struct DoNotDisturbSettings {
pub user_initiated_do_not_disturb: Option<bool>,
pub night_mode_initiated_do_not_disturb: Option<bool>,
/* private fields */
}
Expand description
Settings related to do-not-disturb (DND) mode.
Fields§
§user_initiated_do_not_disturb: Option<bool>
If true, the device is in do-not-disturb (DND) mode. Change this value if you’re directly responding to a user-initiated event.
Note that the device could still be in DND mode even if this is set to
false
, as [night_mode_initiated_do_not_disturb
] might be true
. To
actually disable DND mode, set both fields to false
.
To know whether DND is enabled, you need to do a boolean OR of both fields.
night_mode_initiated_do_not_disturb: Option<bool>
If true, the device is in do-not-disturb (DND) mode. Change this value if you’re trying to enable or disable DND based on a nightly schedule.
Note that the device could still be in DND mode even if this is set to
false
, as [user_initiated_do_not_disturb
] might be true
. Do not
set that field to false
unless you’re directly responding to a
user-initiated event.
To know whether DND is enabled, you need to do a boolean OR of both fields.
Trait Implementations§
Source§impl Clone for DoNotDisturbSettings
impl Clone for DoNotDisturbSettings
Source§fn clone(&self) -> DoNotDisturbSettings
fn clone(&self) -> DoNotDisturbSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DoNotDisturbSettings
impl Debug for DoNotDisturbSettings
Source§impl<D: ResourceDialect> Decode<DoNotDisturbSettings, D> for DoNotDisturbSettings
impl<D: ResourceDialect> Decode<DoNotDisturbSettings, D> for DoNotDisturbSettings
Source§impl Default for DoNotDisturbSettings
impl Default for DoNotDisturbSettings
Source§fn default() -> DoNotDisturbSettings
fn default() -> DoNotDisturbSettings
Source§impl<D: ResourceDialect> Encode<DoNotDisturbSettings, D> for &DoNotDisturbSettings
impl<D: ResourceDialect> Encode<DoNotDisturbSettings, D> for &DoNotDisturbSettings
Source§impl PartialEq for DoNotDisturbSettings
impl PartialEq for DoNotDisturbSettings
Source§impl TypeMarker for DoNotDisturbSettings
impl TypeMarker for DoNotDisturbSettings
Source§type Owned = DoNotDisturbSettings
type Owned = DoNotDisturbSettings
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for DoNotDisturbSettings
impl ValueTypeMarker for DoNotDisturbSettings
Source§type Borrowed<'a> = &'a DoNotDisturbSettings
type Borrowed<'a> = &'a DoNotDisturbSettings
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for DoNotDisturbSettings
impl StructuralPartialEq for DoNotDisturbSettings
Auto Trait Implementations§
impl Freeze for DoNotDisturbSettings
impl RefUnwindSafe for DoNotDisturbSettings
impl Send for DoNotDisturbSettings
impl Sync for DoNotDisturbSettings
impl Unpin for DoNotDisturbSettings
impl UnwindSafe for DoNotDisturbSettings
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)