diff --git a/Cargo.toml b/Cargo.toml index 50c75fc..e26db06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iex" -version = "0.1.0" +version = "0.1.1" authors = ["Sebastian Rollen "] edition = "2018" diff --git a/src/dividends.rs b/src/dividends.rs index e8c20b9..1709731 100644 --- a/src/dividends.rs +++ b/src/dividends.rs @@ -30,22 +30,22 @@ pub enum Flag { #[derive(Debug, Clone, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Dividend { - amount: Decimal, - currency: String, - description: String, - declared_date: NaiveDate, - ex_date: NaiveDate, - flag: Flag, - frequency: String, - payment_date: NaiveDate, - record_date: NaiveDate, - refid: usize, - symbol: String, - id: String, - key: String, - subkey: String, - date: usize, - updated: usize, + pub amount: Decimal, + pub currency: String, + pub description: String, + pub declared_date: NaiveDate, + pub ex_date: NaiveDate, + pub flag: Flag, + pub frequency: String, + pub payment_date: NaiveDate, + pub record_date: NaiveDate, + pub refid: usize, + pub symbol: String, + pub id: String, + pub key: String, + pub subkey: String, + pub date: usize, + pub updated: usize, } impl Request for GetDividends<'_> { diff --git a/src/splits.rs b/src/splits.rs index a4633df..50566fa 100644 --- a/src/splits.rs +++ b/src/splits.rs @@ -13,19 +13,19 @@ pub struct GetSplits<'a> { #[derive(Debug, Clone, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Split { - ex_date: NaiveDate, - declared_date: NaiveDate, - ratio: f64, - to_factor: f64, - from_factor: f64, - description: String, - symbol: String, - id: String, - source: Option, - key: String, - subkey: String, - date: Option, - updated: usize, + pub ex_date: NaiveDate, + pub declared_date: NaiveDate, + pub ratio: f64, + pub to_factor: f64, + pub from_factor: f64, + pub description: String, + pub symbol: String, + pub id: String, + pub source: Option, + pub key: String, + pub subkey: String, + pub date: Option, + pub updated: usize, } impl Request for GetSplits<'_> {