pub struct OneTimeWindow {
pub end_date: Option<Date>,
pub end_time: Option<TimeOfDay>,
pub start_date: Option<Date>,
pub start_time: Option<TimeOfDay>,
}Expand description
One-time window within which actions are restricted. For example, blocking actions over New Year’s Eve from December 31st at 5pm to January 1st at 9am.
This type is not used in any activity, and only used as part of another schema.
Fields§
§end_date: Option<Date>Required. End date.
end_time: Option<TimeOfDay>Required. End time (exclusive). You may use 24:00 for the end of the day.
start_date: Option<Date>Required. Start date.
start_time: Option<TimeOfDay>Required. Start time (inclusive). Use 00:00 for the beginning of the day.
Trait Implementations§
Source§impl Clone for OneTimeWindow
impl Clone for OneTimeWindow
Source§fn clone(&self) -> OneTimeWindow
fn clone(&self) -> OneTimeWindow
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 OneTimeWindow
impl Debug for OneTimeWindow
Source§impl Default for OneTimeWindow
impl Default for OneTimeWindow
Source§fn default() -> OneTimeWindow
fn default() -> OneTimeWindow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OneTimeWindow
impl<'de> Deserialize<'de> for OneTimeWindow
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
Source§impl Serialize for OneTimeWindow
impl Serialize for OneTimeWindow
impl Part for OneTimeWindow
Auto Trait Implementations§
impl Freeze for OneTimeWindow
impl RefUnwindSafe for OneTimeWindow
impl Send for OneTimeWindow
impl Sync for OneTimeWindow
impl Unpin for OneTimeWindow
impl UnwindSafe for OneTimeWindow
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