pub struct ComplaintDecision {
pub compensation_amount: Option<Box<Price>>,
pub refund_voucher: Option<Box<FulfillmentDocument>>,
pub decision_type: Option<DecisionType>,
pub explanation: Option<Box<SupportingDocument>>,
pub short_explanation: Option<Option<String>>,
pub delayed_journey: Option<Vec<Trip>>,
}Fields§
§compensation_amount: Option<Box<Price>>§refund_voucher: Option<Box<FulfillmentDocument>>§decision_type: Option<DecisionType>§explanation: Option<Box<SupportingDocument>>§short_explanation: Option<Option<String>>§delayed_journey: Option<Vec<Trip>>Allocator or fare provider view on the delays. This might differ from the customer view.
Implementations§
Source§impl ComplaintDecision
impl ComplaintDecision
pub fn new() -> ComplaintDecision
Trait Implementations§
Source§impl Clone for ComplaintDecision
impl Clone for ComplaintDecision
Source§fn clone(&self) -> ComplaintDecision
fn clone(&self) -> ComplaintDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComplaintDecision
impl Debug for ComplaintDecision
Source§impl Default for ComplaintDecision
impl Default for ComplaintDecision
Source§fn default() -> ComplaintDecision
fn default() -> ComplaintDecision
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComplaintDecision
impl<'de> Deserialize<'de> for ComplaintDecision
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 ComplaintDecision
impl PartialEq for ComplaintDecision
Source§fn eq(&self, other: &ComplaintDecision) -> bool
fn eq(&self, other: &ComplaintDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ComplaintDecision
impl Serialize for ComplaintDecision
impl StructuralPartialEq for ComplaintDecision
Auto Trait Implementations§
impl Freeze for ComplaintDecision
impl RefUnwindSafe for ComplaintDecision
impl Send for ComplaintDecision
impl Sync for ComplaintDecision
impl Unpin for ComplaintDecision
impl UnsafeUnpin for ComplaintDecision
impl UnwindSafe for ComplaintDecision
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