Skip to content

Commit

Permalink
Merge pull request #2 from Overmuse/SR/make_fields_public
Browse files Browse the repository at this point in the history
make fields public
  • Loading branch information
SebRollen authored May 27, 2021
2 parents fb5b3c7 + b6e0e0a commit c9e7437
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iex"
version = "0.1.0"
version = "0.1.1"
authors = ["Sebastian Rollen <[email protected]>"]
edition = "2018"

Expand Down
32 changes: 16 additions & 16 deletions src/dividends.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<'_> {
Expand Down
26 changes: 13 additions & 13 deletions src/splits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
key: String,
subkey: String,
date: Option<usize>,
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<String>,
pub key: String,
pub subkey: String,
pub date: Option<usize>,
pub updated: usize,
}

impl Request for GetSplits<'_> {
Expand Down

0 comments on commit c9e7437

Please sign in to comment.