[−][src]Enum fin_model::reporting::FinancialPeriod
Represents common financial periods, whole years, half years, and quarter years.
By default the assumption is that periods represent calendar time; for example, the values "2019", "Q1 2019", and "H1 2019" are all assumed to start on January 1st.
Variants
Quarter
Fields of Quarter
Half
Fields of Half
Year
Fields of Year
year: u16
the year itself (values: 1900..9999)
Methods
impl FinancialPeriod
[src]
pub fn is_valid(&self) -> bool
[src]
Validate the period to ensure that quarter, half, and year values are within correct ranges.
Trait Implementations
impl PartialEq<FinancialPeriod> for FinancialPeriod
[src]
fn eq(&self, other: &FinancialPeriod) -> bool
[src]
fn ne(&self, other: &FinancialPeriod) -> bool
[src]
impl Display for FinancialPeriod
[src]
impl Debug for FinancialPeriod
[src]
impl FromStr for FinancialPeriod
[src]
Auto Trait Implementations
impl Sync for FinancialPeriod
impl Send for FinancialPeriod
impl Unpin for FinancialPeriod
impl RefUnwindSafe for FinancialPeriod
impl UnwindSafe for FinancialPeriod
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,