pub enum VendorBehavior {
Strict,
Flexible,
VeryFlexible,
Aggressive,
}Expand description
Vendor payment behavior for simulation.
Variants§
Strict
Strict - expects payment exactly on due date
Flexible
Flexible - accepts some late payments
VeryFlexible
Very flexible - rarely follows up on late payments
Aggressive
Aggressive - immediate follow-up on overdue
Implementations§
Source§impl VendorBehavior
impl VendorBehavior
Sourcepub fn grace_period_days(&self) -> u16
pub fn grace_period_days(&self) -> u16
Get typical grace period in days beyond due date.
Trait Implementations§
Source§impl Clone for VendorBehavior
impl Clone for VendorBehavior
Source§fn clone(&self) -> VendorBehavior
fn clone(&self) -> VendorBehavior
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 VendorBehavior
impl Debug for VendorBehavior
Source§impl Default for VendorBehavior
impl Default for VendorBehavior
Source§fn default() -> VendorBehavior
fn default() -> VendorBehavior
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VendorBehavior
impl<'de> Deserialize<'de> for VendorBehavior
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 Hash for VendorBehavior
impl Hash for VendorBehavior
Source§impl PartialEq for VendorBehavior
impl PartialEq for VendorBehavior
Source§impl Serialize for VendorBehavior
impl Serialize for VendorBehavior
impl Copy for VendorBehavior
impl Eq for VendorBehavior
impl StructuralPartialEq for VendorBehavior
Auto Trait Implementations§
impl Freeze for VendorBehavior
impl RefUnwindSafe for VendorBehavior
impl Send for VendorBehavior
impl Sync for VendorBehavior
impl Unpin for VendorBehavior
impl UnwindSafe for VendorBehavior
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.