pub struct NormalWeekBaseline { /* private fields */ }Expand description
The sourced normal-week baseline one coverage refusal sits inside.
The value carries the profile the identity’s timeline serves for the
refused date’s opening day — the era selection is the same one the query
engine performs, anchored at that day’s last local second — and the
refused date’s own weekday in the profile’s zone. Its accessors project the
weekday’s rules, and its Display renders the
ordinary-week shape a consumer reads beside a holiday-arrangement refusal.
A baseline is a statement about the normal week only: it says nothing
about the refused date’s holiday arrangement, which is exactly what the
refusal withholds. It is Clone rather than Copy because it carries the
profile; the rule slices behind it are borrowed static tables.
Implementations§
Source§impl NormalWeekBaseline
impl NormalWeekBaseline
Sourcepub fn identity(&self) -> CalendarSource
pub fn identity(&self) -> CalendarSource
Returns the identity the baseline belongs to.
Sourcepub const fn weekday(&self) -> Weekday
pub const fn weekday(&self) -> Weekday
Returns the refused date’s weekday in the profile’s zone.
Sourcepub const fn profile(&self) -> &MarketHours
pub const fn profile(&self) -> &MarketHours
Returns the profile the timeline serves for the refused date’s opening
day, with its rule sets readable through MarketHours’s public
fields.
Sourcepub fn tradeable_rules(&self) -> impl Iterator<Item = SessionRule> + use<'_>
pub fn tradeable_rules(&self) -> impl Iterator<Item = SessionRule> + use<'_>
Returns the refused date’s weekday tradeable rules — the profile’s
regular and extended sets together, the union every is_open
answer reads — as the static tables state them: seconds since local
midnight, wrap rules included
(SessionRule::wraps_to_next_day).
A weekday with no tradeable rule yields an empty iterator, which is the normal week’s own statement that nothing tradeable is scheduled.
Sourcepub fn order_entry_rules(&self) -> impl Iterator<Item = SessionRule> + use<'_>
pub fn order_entry_rules(&self) -> impl Iterator<Item = SessionRule> + use<'_>
Returns the refused date’s weekday order-entry rules — the profile’s
order_entry set, whose windows accept orders that cannot match — as
the static tables state them.
Trait Implementations§
Source§impl Clone for NormalWeekBaseline
impl Clone for NormalWeekBaseline
Source§impl Debug for NormalWeekBaseline
impl Debug for NormalWeekBaseline
Source§impl Display for NormalWeekBaseline
Renders the baseline the way a refusal’s context names it: the weekday and
the ordinary-week windows, in the profile’s own local clock, chronological
within each phase class.
impl Display for NormalWeekBaseline
Renders the baseline the way a refusal’s context names it: the weekday and the ordinary-week windows, in the profile’s own local clock, chronological within each phase class.