pub struct Tip {
pub id: String,
pub summary: Option<String>,
pub booking_part_ref: Option<Box<BookingPartReference>>,
pub price: Box<Price>,
pub distributor_booking_ref: Option<Option<String>>,
pub accounting_ref: Option<Box<AccountingRef>>,
}Expand description
Tip : Tips for staff can be included e.g. for taxi drivers. The tip is part of the payment in a post payment scenario.
Fields§
§id: String§summary: Option<String>A human-readable description of the tip.
booking_part_ref: Option<Box<BookingPartReference>>§price: Box<Price>§distributor_booking_ref: Option<Option<String>>reference to the booking in the downstream distributor system
accounting_ref: Option<Box<AccountingRef>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tip
impl<'de> Deserialize<'de> for Tip
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
impl StructuralPartialEq for Tip
Auto Trait Implementations§
impl Freeze for Tip
impl RefUnwindSafe for Tip
impl Send for Tip
impl Sync for Tip
impl Unpin for Tip
impl UnwindSafe for Tip
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