#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct AccountBucketInstrumentResult {
#[serde(rename = "currentShare")]
pub current_share: f32,
#[serde(rename = "expectedShare")]
pub expected_share: f32,
#[serde(rename = "issues")]
pub issues: Vec<crate::models::instrument_issue::InstrumentIssue>,
#[serde(rename = "ownedQuantity")]
pub owned_quantity: f32,
#[serde(rename = "result")]
pub result: crate::models::investment_result::InvestmentResult,
#[serde(rename = "ticker")]
pub ticker: String,
}
impl AccountBucketInstrumentResult {
#[must_use]
pub fn new() -> Self {
Self {
current_share: 0.0,
expected_share: 0.0,
issues: Vec::new(),
owned_quantity: 0.0,
result: crate::models::investment_result::InvestmentResult::new(),
ticker: String::new(),
}
}
}
impl Default for AccountBucketInstrumentResult {
fn default() -> Self {
Self::new()
}
}