pub struct ExcludedTimeRange {
pub from: i32,
pub until: i32,
pub scope: ExclusionScope,
}Expand description
ExcludedTimeRange : time ranges excluded from the validity (e.g. off peak fulfillments)
Fields§
§from: i32minutes of the day in the time zone of travel
until: i32minutes of the day in the time zone of travel
scope: ExclusionScopeImplementations§
Source§impl ExcludedTimeRange
impl ExcludedTimeRange
Sourcepub fn new(from: i32, until: i32, scope: ExclusionScope) -> ExcludedTimeRange
pub fn new(from: i32, until: i32, scope: ExclusionScope) -> ExcludedTimeRange
time ranges excluded from the validity (e.g. off peak fulfillments)
Trait Implementations§
Source§impl Clone for ExcludedTimeRange
impl Clone for ExcludedTimeRange
Source§fn clone(&self) -> ExcludedTimeRange
fn clone(&self) -> ExcludedTimeRange
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 ExcludedTimeRange
impl Debug for ExcludedTimeRange
Source§impl Default for ExcludedTimeRange
impl Default for ExcludedTimeRange
Source§fn default() -> ExcludedTimeRange
fn default() -> ExcludedTimeRange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExcludedTimeRange
impl<'de> Deserialize<'de> for ExcludedTimeRange
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 PartialEq for ExcludedTimeRange
impl PartialEq for ExcludedTimeRange
Source§impl Serialize for ExcludedTimeRange
impl Serialize for ExcludedTimeRange
impl StructuralPartialEq for ExcludedTimeRange
Auto Trait Implementations§
impl Freeze for ExcludedTimeRange
impl RefUnwindSafe for ExcludedTimeRange
impl Send for ExcludedTimeRange
impl Sync for ExcludedTimeRange
impl Unpin for ExcludedTimeRange
impl UnwindSafe for ExcludedTimeRange
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