pub struct PassengerFare {
pub passenger_type: PassengerType,
pub fare2_hour_off_peak: Decimal,
pub fare2_hour_peak: Decimal,
pub fare_daily_peak: Decimal,
pub fare_daily_off_peak: Decimal,
pub pass7_days: Decimal,
pub pass28_to69_day_per_day: Decimal,
pub pass70_plus_day_per_day: Decimal,
pub weekend_cap: Decimal,
pub holiday_cap: Decimal,
}Fields§
§passenger_type: PassengerType§fare2_hour_off_peak: Decimal§fare2_hour_peak: Decimal§fare_daily_peak: Decimal§fare_daily_off_peak: Decimal§pass7_days: Decimal§pass28_to69_day_per_day: Decimal§pass70_plus_day_per_day: Decimal§weekend_cap: Decimal§holiday_cap: DecimalTrait Implementations§
Source§impl Debug for PassengerFare
impl Debug for PassengerFare
Source§impl<'de> Deserialize<'de> for PassengerFare
impl<'de> Deserialize<'de> for PassengerFare
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 PassengerFare
impl Ord for PassengerFare
Source§fn cmp(&self, other: &PassengerFare) -> Ordering
fn cmp(&self, other: &PassengerFare) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PassengerFare
impl PartialEq for PassengerFare
Source§impl PartialOrd for PassengerFare
impl PartialOrd for PassengerFare
Source§impl Serialize for PassengerFare
impl Serialize for PassengerFare
impl Eq for PassengerFare
impl StructuralPartialEq for PassengerFare
Auto Trait Implementations§
impl Freeze for PassengerFare
impl RefUnwindSafe for PassengerFare
impl Send for PassengerFare
impl Sync for PassengerFare
impl Unpin for PassengerFare
impl UnwindSafe for PassengerFare
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
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more