明确红利账务再投来源并修复流式遗漏与校正时钟

This commit is contained in:
boris
2026-09-14 22:30:05 +08:00
parent fbc4233dcd
commit 984f9d308d
11 changed files with 681 additions and 140 deletions
+4
View File
@@ -493,6 +493,8 @@ pub struct ManualCorporateAdjustment {
pub observed_at: DateTime<Utc>,
pub cash_dividends_enabled: bool,
pub dividend_cost_basis_adjustment: bool,
#[serde(default, skip_serializing_if = "disabled_flag")]
pub dividend_reinvestment: bool,
pub actions: Vec<ManualCorporateActionReference>,
pub cash_before: String,
pub cash_after: String,
@@ -502,6 +504,8 @@ pub struct ManualCorporateAdjustment {
pub replayed_sha256: String,
}
fn disabled_flag(value: &bool) -> bool { !value }
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[serde(deny_unknown_fields, rename_all = "camelCase")]
pub struct ManualCorporateActionReference {