pub struct DayPolicy {
pub windows: Vec<Window>,
pub limit_seconds: Option<u32>,
}Expand description
Listening windows and optional budget for one weekday.
Fields§
§windows: Vec<Window>At most eight non-overlapping windows; empty means no listening.
limit_seconds: Option<u32>Optional maximum seconds; zero means no listening.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DayPolicy
impl<'de> Deserialize<'de> for DayPolicy
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 DayPolicy
impl StructuralPartialEq for DayPolicy
Auto Trait Implementations§
impl Freeze for DayPolicy
impl RefUnwindSafe for DayPolicy
impl Send for DayPolicy
impl Sync for DayPolicy
impl Unpin for DayPolicy
impl UnwindSafe for DayPolicy
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