pub struct NotificationPreferencesInputQuietHours {
pub start_local: Option<String>,
pub end_local: Option<String>,
pub timezone: Option<String>,
pub start_utc: Option<String>,
pub end_utc: Option<String>,
}Expand description
Window during which non-critical messages are suppressed; critical always bypasses. Set both start_local and end_local to enable, empty disables.
Fields§
§start_local: Option<String>Local-time start “HH:mm”.
end_local: Option<String>Local-time end “HH:mm”.
timezone: Option<String>IANA timezone (e.g. “Europe/Kyiv”). Defaults to UTC when absent.
start_utc: Option<String>Legacy — use start_local + timezone.
end_utc: Option<String>Legacy — use end_local + timezone.
Trait Implementations§
Source§impl Clone for NotificationPreferencesInputQuietHours
impl Clone for NotificationPreferencesInputQuietHours
Source§fn clone(&self) -> NotificationPreferencesInputQuietHours
fn clone(&self) -> NotificationPreferencesInputQuietHours
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 Default for NotificationPreferencesInputQuietHours
impl Default for NotificationPreferencesInputQuietHours
Source§fn default() -> NotificationPreferencesInputQuietHours
fn default() -> NotificationPreferencesInputQuietHours
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationPreferencesInputQuietHours
impl<'de> Deserialize<'de> for NotificationPreferencesInputQuietHours
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
impl StructuralPartialEq for NotificationPreferencesInputQuietHours
Auto Trait Implementations§
impl Freeze for NotificationPreferencesInputQuietHours
impl RefUnwindSafe for NotificationPreferencesInputQuietHours
impl Send for NotificationPreferencesInputQuietHours
impl Sync for NotificationPreferencesInputQuietHours
impl Unpin for NotificationPreferencesInputQuietHours
impl UnsafeUnpin for NotificationPreferencesInputQuietHours
impl UnwindSafe for NotificationPreferencesInputQuietHours
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