pub enum AgingBucket {
Current,
Days1To30,
Days31To60,
Days61To90,
Over90Days,
}Expand description
Aging bucket definition.
Variants§
Current
Not yet due.
Days1To30
1-30 days overdue.
Days31To60
31-60 days overdue.
Days61To90
61-90 days overdue.
Over90Days
Over 90 days overdue.
Implementations§
Source§impl AgingBucket
impl AgingBucket
Sourcepub fn all() -> Vec<AgingBucket>
pub fn all() -> Vec<AgingBucket>
Gets all buckets in order.
Sourcepub fn from_days_overdue(days: i64) -> Self
pub fn from_days_overdue(days: i64) -> Self
Determines bucket from days overdue.
Trait Implementations§
Source§impl Clone for AgingBucket
impl Clone for AgingBucket
Source§fn clone(&self) -> AgingBucket
fn clone(&self) -> AgingBucket
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 AgingBucket
impl Debug for AgingBucket
Source§impl<'de> Deserialize<'de> for AgingBucket
impl<'de> Deserialize<'de> for AgingBucket
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 AgingBucket
impl Hash for AgingBucket
Source§impl PartialEq for AgingBucket
impl PartialEq for AgingBucket
Source§impl Serialize for AgingBucket
impl Serialize for AgingBucket
impl Copy for AgingBucket
impl Eq for AgingBucket
impl StructuralPartialEq for AgingBucket
Auto Trait Implementations§
impl Freeze for AgingBucket
impl RefUnwindSafe for AgingBucket
impl Send for AgingBucket
impl Sync for AgingBucket
impl Unpin for AgingBucket
impl UnwindSafe for AgingBucket
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.