Struct transit_model::objects::FareV1
source · pub struct FareV1 {
pub before_change: String,
pub after_change: String,
pub start_trip: String,
pub end_trip: String,
pub global_condition: String,
pub ticket_id: String,
}
Fields§
§before_change: String
§after_change: String
§start_trip: String
§end_trip: String
§global_condition: String
§ticket_id: String
Trait Implementations§
source§impl AddPrefix for FareV1
impl AddPrefix for FareV1
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 FareV1
impl<'de> Deserialize<'de> for FareV1
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 FareV1
impl Ord for FareV1
source§impl PartialEq<FareV1> for FareV1
impl PartialEq<FareV1> for FareV1
source§impl PartialOrd<FareV1> for FareV1
impl PartialOrd<FareV1> for FareV1
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 FareV1
impl StructuralEq for FareV1
impl StructuralPartialEq for FareV1
Auto Trait Implementations§
impl RefUnwindSafe for FareV1
impl Send for FareV1
impl Sync for FareV1
impl Unpin for FareV1
impl UnwindSafe for FareV1
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