pub struct IRWindow {
pub node_type: &'static str,
pub source_line: u32,
pub source_column: u32,
pub name: String,
pub timezone: String,
pub allow: Vec<IRWindowSpan>,
pub exclude: Vec<String>,
pub on_outside: String,
}Expand description
v2.27.0 — the lowered temporal execution-window guard. The runtime
(v2.27.0) evaluates is_in_window(now, tz, allow); the daemon binding +
coalesced defer ledger are v2.27.0.
Fields§
§node_type: &'static str§source_line: u32§source_column: u32§name: String§timezone: String§allow: Vec<IRWindowSpan>§exclude: Vec<String>v2.27.0 — excluded dates (holidays): ISO YYYY-MM-DD literals. A tick
whose local date is in this set is OUTSIDE regardless of the hour spans.
skip_serializing_if keeps a holiday-less window’s JSON byte-identical.
on_outside: StringTrait Implementations§
Source§impl Serialize for IRWindow
impl Serialize for IRWindow
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for IRWindow
impl RefUnwindSafe for IRWindow
impl Send for IRWindow
impl Sync for IRWindow
impl Unpin for IRWindow
impl UnsafeUnpin for IRWindow
impl UnwindSafe for IRWindow
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