pub struct GrantedReductionAmount {
pub description: String,
pub granted_amount: Box<Price>,
pub passenger_refs: Option<Vec<String>>,
pub trip_coverage: Option<Box<TripCoverage>>,
pub inbound_trip_coverage: Option<Box<TripCoverage>>,
pub applied_passenger_types: Option<Vec<String>>,
pub applied_reductions: Option<Vec<CardReference>>,
pub applied_corporate_codes: Option<Vec<CorporateCode>>,
pub applied_promotion_codes: Option<Vec<PromotionCode>>,
}Expand description
GrantedReductionAmount : Applied passenger types and reductions per passenger, per offerpart, booking part and per part of the trip. Passengers might be omitted in case the reduction applies to the complete booking part.
Fields§
§description: StringClear text representation of the actual passenger type, suitable to be presented to a client.
granted_amount: Box<Price>§passenger_refs: Option<Vec<String>>ids of the passengers that were granted the reduction
trip_coverage: Option<Box<TripCoverage>>§inbound_trip_coverage: Option<Box<TripCoverage>>§applied_passenger_types: Option<Vec<String>>§applied_reductions: Option<Vec<CardReference>>§applied_corporate_codes: Option<Vec<CorporateCode>>§applied_promotion_codes: Option<Vec<PromotionCode>>Implementations§
Source§impl GrantedReductionAmount
impl GrantedReductionAmount
Sourcepub fn new(description: String, granted_amount: Price) -> GrantedReductionAmount
pub fn new(description: String, granted_amount: Price) -> GrantedReductionAmount
Applied passenger types and reductions per passenger, per offerpart, booking part and per part of the trip. Passengers might be omitted in case the reduction applies to the complete booking part.
Trait Implementations§
Source§impl Clone for GrantedReductionAmount
impl Clone for GrantedReductionAmount
Source§fn clone(&self) -> GrantedReductionAmount
fn clone(&self) -> GrantedReductionAmount
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 GrantedReductionAmount
impl Debug for GrantedReductionAmount
Source§impl Default for GrantedReductionAmount
impl Default for GrantedReductionAmount
Source§fn default() -> GrantedReductionAmount
fn default() -> GrantedReductionAmount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GrantedReductionAmount
impl<'de> Deserialize<'de> for GrantedReductionAmount
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 GrantedReductionAmount
impl PartialEq for GrantedReductionAmount
Source§impl Serialize for GrantedReductionAmount
impl Serialize for GrantedReductionAmount
impl StructuralPartialEq for GrantedReductionAmount
Auto Trait Implementations§
impl Freeze for GrantedReductionAmount
impl RefUnwindSafe for GrantedReductionAmount
impl Send for GrantedReductionAmount
impl Sync for GrantedReductionAmount
impl Unpin for GrantedReductionAmount
impl UnwindSafe for GrantedReductionAmount
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