Struct transit_model::objects::OdFareV1
source · pub struct OdFareV1 {
pub origin_stop_area_id: String,
pub origin_name: Option<String>,
pub origin_mode: String,
pub destination_stop_area_id: String,
pub destination_name: Option<String>,
pub destination_mode: String,
pub ticket_id: String,
}
Fields§
§origin_stop_area_id: String
§origin_name: Option<String>
§origin_mode: String
§destination_stop_area_id: String
§destination_name: Option<String>
§destination_mode: String
§ticket_id: String
Trait Implementations§
source§impl AddPrefix for OdFareV1
impl AddPrefix for OdFareV1
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 OdFareV1
impl<'de> Deserialize<'de> for OdFareV1
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 Ord for OdFareV1
impl Ord for OdFareV1
source§impl PartialEq<OdFareV1> for OdFareV1
impl PartialEq<OdFareV1> for OdFareV1
source§impl PartialOrd<OdFareV1> for OdFareV1
impl PartialOrd<OdFareV1> for OdFareV1
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for OdFareV1
impl StructuralEq for OdFareV1
impl StructuralPartialEq for OdFareV1
Auto Trait Implementations§
impl RefUnwindSafe for OdFareV1
impl Send for OdFareV1
impl Sync for OdFareV1
impl Unpin for OdFareV1
impl UnwindSafe for OdFareV1
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