pub struct OperatingDays {
pub from: String,
pub until: String,
pub pattern: String,
}Expand description
OperatingDays : Day of public transport operation of which the characteristics are defined in a specific service calendar and which may last more than 24 hours. Provided by OJP.
Fields§
§from: StringStart date of period
until: StringEnd date of period
pattern: StringBit pattern for operating days between start date and end date. The length of the pattern is equal to the number of days from start date to end date. A bit value of ‘1’ indicates that an event actually happens on the day that is represented by the bit position.
Implementations§
Source§impl OperatingDays
impl OperatingDays
Trait Implementations§
Source§impl Clone for OperatingDays
impl Clone for OperatingDays
Source§fn clone(&self) -> OperatingDays
fn clone(&self) -> OperatingDays
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 OperatingDays
impl Debug for OperatingDays
Source§impl Default for OperatingDays
impl Default for OperatingDays
Source§fn default() -> OperatingDays
fn default() -> OperatingDays
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OperatingDays
impl<'de> Deserialize<'de> for OperatingDays
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 OperatingDays
impl PartialEq for OperatingDays
Source§impl Serialize for OperatingDays
impl Serialize for OperatingDays
impl StructuralPartialEq for OperatingDays
Auto Trait Implementations§
impl Freeze for OperatingDays
impl RefUnwindSafe for OperatingDays
impl Send for OperatingDays
impl Sync for OperatingDays
impl Unpin for OperatingDays
impl UnwindSafe for OperatingDays
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