ibkr_flex_statement/statement_section.rs
1use crate::node_utils::NodeWrapper;
2use anyhow::Result;
3use chrono_tz::Tz;
4use std::collections::HashMap;
5
6pub trait StatementSection {
7 fn from_node(node: &NodeWrapper) -> Result<Self>
8 where
9 Self: Sized;
10}
11
12pub trait StatementSectionWithTimezone {
13 fn from_node(node: &NodeWrapper, timezone_map: &HashMap<String, Tz>) -> Result<Self>
14 where
15 Self: Sized;
16}