Struct transit_model::objects::Transfer
source · pub struct Transfer {
pub from_stop_id: String,
pub to_stop_id: String,
pub min_transfer_time: Option<u32>,
pub real_min_transfer_time: Option<u32>,
pub equipment_id: Option<String>,
}
Fields§
§from_stop_id: String
§to_stop_id: String
§min_transfer_time: Option<u32>
§real_min_transfer_time: Option<u32>
§equipment_id: Option<String>
Trait Implementations§
source§impl AddPrefix for Transfer
impl AddPrefix for Transfer
source§fn prefix(&mut self, prefix_conf: &PrefixConfiguration)
fn prefix(&mut self, prefix_conf: &PrefixConfiguration)
Add the prefix to all elements of the object that needs to be prefixed.
PrefixConfiguration contains all the needed metadata to create the
complete prefix.
source§fn add_prefix(&mut self, prefix: &str)
fn add_prefix(&mut self, prefix: &str)
👎Deprecated since 0.24.0: please use
AddPrefix::prefix()
insteadAdd the prefix to all elements of the object that needs to be prefixed.
source§fn add_prefix_with_sep(&mut self, prefix: &str, sep: &str)
fn add_prefix_with_sep(&mut self, prefix: &str, sep: &str)
👎Deprecated since 0.24.0: please use
AddPrefix::prefix()
insteadAdd the prefix to all elements of the object that needs to be prefixed.
A separator will be placed between the prefix and the identifier.
source§impl<'de> Deserialize<'de> for Transfer
impl<'de> Deserialize<'de> for Transfer
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 GetCorresponding<Transfer> for IdxSet<CommercialMode>
impl GetCorresponding<Transfer> for IdxSet<CommercialMode>
source§impl GetCorresponding<Transfer> for IdxSet<Contributor>
impl GetCorresponding<Transfer> for IdxSet<Contributor>
source§impl GetCorresponding<Transfer> for IdxSet<PhysicalMode>
impl GetCorresponding<Transfer> for IdxSet<PhysicalMode>
source§impl GetCorresponding<Transfer> for IdxSet<VehicleJourney>
impl GetCorresponding<Transfer> for IdxSet<VehicleJourney>
source§impl PartialEq<Transfer> for Transfer
impl PartialEq<Transfer> for Transfer
impl Eq for Transfer
Auto Trait Implementations§
impl RefUnwindSafe for Transfer
impl Send for Transfer
impl Sync for Transfer
impl Unpin for Transfer
impl UnwindSafe for Transfer
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