pub struct Policy { /* private fields */ }Expand description
Deposit-collection policy used before confirming a boarding reservation.
Implementations§
Source§impl Policy
impl Policy
Sourcepub const fn new(rule: DepositRule, timing: PaymentTiming) -> Self
pub const fn new(rule: DepositRule, timing: PaymentTiming) -> Self
Creates a deposit policy from the resort rule and payment timing.
Sourcepub fn readiness_for_confirmation(
&self,
deposit: Option<&Deposit>,
) -> ConfirmationReadiness
pub fn readiness_for_confirmation( &self, deposit: Option<&Deposit>, ) -> ConfirmationReadiness
Determines whether a reservation may be confirmed from deposit evidence or must route to exception review.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Policy
impl<'de> Deserialize<'de> for Policy
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 Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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