pub struct ContinuousService {
pub continuous_mode: Option<String>,
pub individual_mode: Option<String>,
pub operating_day_ref: Option<String>,
pub journey_ref: Option<String>,
pub mode: String,
pub published_service_name: String,
pub origin_text: String,
pub destination_text: String,
}Expand description
ContinuousService : A vehicle movement on a continuous, non-timetabled service. Service of this leg. May be ‘walk’ in most cases, but also cycling or taxi etc. Provided by OJP.
Fields§
§continuous_mode: Option<String>Types of modes that run at any time without a timetable. Provided by OJP.
individual_mode: Option<String>Modes which an individual powers themselves (such as walk, cycle). Provided by OJP.
operating_day_ref: Option<String>Reference to an operating day. Provided by OJP.
journey_ref: Option<String>Reference to a journey. Provided by OJP.
mode: String§published_service_name: String§origin_text: String§destination_text: StringImplementations§
Source§impl ContinuousService
impl ContinuousService
Sourcepub fn new(
operating_day_ref: Option<String>,
journey_ref: Option<String>,
mode: String,
published_service_name: String,
origin_text: String,
destination_text: String,
) -> ContinuousService
pub fn new( operating_day_ref: Option<String>, journey_ref: Option<String>, mode: String, published_service_name: String, origin_text: String, destination_text: String, ) -> ContinuousService
A vehicle movement on a continuous, non-timetabled service. Service of this leg. May be ‘walk’ in most cases, but also cycling or taxi etc. Provided by OJP.
Trait Implementations§
Source§impl Clone for ContinuousService
impl Clone for ContinuousService
Source§fn clone(&self) -> ContinuousService
fn clone(&self) -> ContinuousService
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 ContinuousService
impl Debug for ContinuousService
Source§impl Default for ContinuousService
impl Default for ContinuousService
Source§fn default() -> ContinuousService
fn default() -> ContinuousService
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContinuousService
impl<'de> Deserialize<'de> for ContinuousService
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 ContinuousService
impl PartialEq for ContinuousService
Source§impl Serialize for ContinuousService
impl Serialize for ContinuousService
impl StructuralPartialEq for ContinuousService
Auto Trait Implementations§
impl Freeze for ContinuousService
impl RefUnwindSafe for ContinuousService
impl Send for ContinuousService
impl Sync for ContinuousService
impl Unpin for ContinuousService
impl UnwindSafe for ContinuousService
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