pub struct SankeyFlow {
pub statement_type: SankeyStatementType,
pub fiscal_year: u16,
pub fiscal_period: u8,
pub company_code: String,
pub currency: String,
pub is_consolidated: bool,
pub period_start: NaiveDate,
pub period_end: NaiveDate,
pub nodes: Vec<SankeyNode>,
pub links: Vec<SankeyLink>,
}Expand description
A complete Sankey funds-flow for one statement and one period (or a full-year / consolidated rollup). Plain serde structs — no runtime dep.
Fields§
§statement_type: SankeyStatementTypeWhich statement this flow visualises.
fiscal_year: u16Fiscal year.
fiscal_period: u8Fiscal period (0 ⇒ full-year rollup).
company_code: StringOwning entity code (or the group code for a consolidated flow).
currency: StringPresentation currency.
is_consolidated: boolWhether this is a consolidated flow.
period_start: NaiveDatePeriod start (earliest period for a rollup).
period_end: NaiveDatePeriod end (latest period for a rollup).
nodes: Vec<SankeyNode>Flow nodes.
links: Vec<SankeyLink>Flow links.
Trait Implementations§
Source§impl Clone for SankeyFlow
impl Clone for SankeyFlow
Source§fn clone(&self) -> SankeyFlow
fn clone(&self) -> SankeyFlow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SankeyFlow
impl Debug for SankeyFlow
Source§impl<'de> Deserialize<'de> for SankeyFlow
impl<'de> Deserialize<'de> for SankeyFlow
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 PartialEq for SankeyFlow
impl PartialEq for SankeyFlow
Source§fn eq(&self, other: &SankeyFlow) -> bool
fn eq(&self, other: &SankeyFlow) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SankeyFlow
impl Serialize for SankeyFlow
impl StructuralPartialEq for SankeyFlow
Auto Trait Implementations§
impl Freeze for SankeyFlow
impl RefUnwindSafe for SankeyFlow
impl Send for SankeyFlow
impl Sync for SankeyFlow
impl Unpin for SankeyFlow
impl UnsafeUnpin for SankeyFlow
impl UnwindSafe for SankeyFlow
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.