pub struct ServiceTime {
pub timetabled_time: String,
pub estimated_time: Option<Option<String>>,
pub observed_time: Option<Option<String>>,
}Expand description
ServiceTime : The time needs to be in Offset Time Format, i.e. 2023-12-03T10:15:30+01:00 as it is important the time zones are important to show in the timetable. Do not use the Coordinated Universal Time (UTC) format, i.e. 2023-12-03T10:15:30Z.
Fields§
§timetabled_time: String§estimated_time: Option<Option<String>>§observed_time: Option<Option<String>>Implementations§
Source§impl ServiceTime
impl ServiceTime
Sourcepub fn new(timetabled_time: String) -> ServiceTime
pub fn new(timetabled_time: String) -> ServiceTime
The time needs to be in Offset Time Format, i.e. 2023-12-03T10:15:30+01:00 as it is important the time zones are important to show in the timetable. Do not use the Coordinated Universal Time (UTC) format, i.e. 2023-12-03T10:15:30Z.
Trait Implementations§
Source§impl Clone for ServiceTime
impl Clone for ServiceTime
Source§fn clone(&self) -> ServiceTime
fn clone(&self) -> ServiceTime
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 ServiceTime
impl Debug for ServiceTime
Source§impl Default for ServiceTime
impl Default for ServiceTime
Source§fn default() -> ServiceTime
fn default() -> ServiceTime
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceTime
impl<'de> Deserialize<'de> for ServiceTime
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 ServiceTime
impl PartialEq for ServiceTime
Source§impl Serialize for ServiceTime
impl Serialize for ServiceTime
impl StructuralPartialEq for ServiceTime
Auto Trait Implementations§
impl Freeze for ServiceTime
impl RefUnwindSafe for ServiceTime
impl Send for ServiceTime
impl Sync for ServiceTime
impl Unpin for ServiceTime
impl UnwindSafe for ServiceTime
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