pub struct QuietWindow {
pub from_ts: u64,
pub until_ts: u64,
}Expand description
禁止时段(quiet hours):[from_ts, until_ts) 绝对 Unix 秒,半开区间。
刻意不做时区/每日时段换算——「每天 23 点」在 Unix 秒语义下无定义,只有绝对窗口。
Fields§
§from_ts: u64禁止开始时刻(含)。
until_ts: u64禁止结束时刻(不含,恰在此时刻已放行,与有效期口径一致)。
Trait Implementations§
Source§impl Clone for QuietWindow
impl Clone for QuietWindow
Source§fn clone(&self) -> QuietWindow
fn clone(&self) -> QuietWindow
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 moreimpl Copy for QuietWindow
Source§impl Debug for QuietWindow
impl Debug for QuietWindow
Source§impl<'de> Deserialize<'de> for QuietWindow
impl<'de> Deserialize<'de> for QuietWindow
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 Eq for QuietWindow
Source§impl PartialEq for QuietWindow
impl PartialEq for QuietWindow
Source§impl Serialize for QuietWindow
impl Serialize for QuietWindow
impl StructuralPartialEq for QuietWindow
Auto Trait Implementations§
impl Freeze for QuietWindow
impl RefUnwindSafe for QuietWindow
impl Send for QuietWindow
impl Sync for QuietWindow
impl Unpin for QuietWindow
impl UnsafeUnpin for QuietWindow
impl UnwindSafe for QuietWindow
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