pub struct TimeContext {
pub timezone: Option<String>,
pub local_time: Option<DateTime<Utc>>,
pub is_work_day: Option<bool>,
pub shift: Option<String>,
pub is_peak_hours: Option<bool>,
pub minutes_until_shift_change: Option<i32>,
}Expand description
Time-related context.
Fields§
§timezone: Option<String>Local timezone
local_time: Option<DateTime<Utc>>Local time
is_work_day: Option<bool>Whether it’s a work day
shift: Option<String>Shift name (e.g., “day”, “night”, “swing”)
is_peak_hours: Option<bool>Whether facility is in peak hours
minutes_until_shift_change: Option<i32>Time until shift change (minutes)
Trait Implementations§
Source§impl Clone for TimeContext
impl Clone for TimeContext
Source§fn clone(&self) -> TimeContext
fn clone(&self) -> TimeContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeContext
impl Debug for TimeContext
Source§impl Default for TimeContext
impl Default for TimeContext
Source§fn default() -> TimeContext
fn default() -> TimeContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimeContext
impl<'de> Deserialize<'de> for TimeContext
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
Auto Trait Implementations§
impl Freeze for TimeContext
impl RefUnwindSafe for TimeContext
impl Send for TimeContext
impl Sync for TimeContext
impl Unpin for TimeContext
impl UnwindSafe for TimeContext
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