Skip to content

Commit

Permalink
refactor: expose projection fields publicly
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Jan 16, 2025
1 parent 403a92e commit 4e2a6e4
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions core/chart-of-accounts/src/chart_of_accounts/chart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@ use crate::{path::*, ChartId};

use super::ChartEvent;

pub struct ControlAccountAdded {
struct ControlAccountAdded {
name: String,
path: ControlAccountPath,
}

pub struct ControlAccountProjection {
name: String,
encoded_path: String,
children: Vec<ControlSubAccountProjection>,
pub name: String,
pub encoded_path: String,
pub children: Vec<ControlSubAccountProjection>,
}

pub struct ControlSubAccountProjection {
name: String,
encoded_path: String,
pub name: String,
pub encoded_path: String,
}

pub struct ChartOfAccountsProjection {
id: ChartId,
name: String,
assets: Vec<ControlAccountProjection>,
liabilities: Vec<ControlAccountProjection>,
equity: Vec<ControlAccountProjection>,
revenues: Vec<ControlAccountProjection>,
expenses: Vec<ControlAccountProjection>,
pub id: ChartId,
pub name: String,
pub assets: Vec<ControlAccountProjection>,
pub liabilities: Vec<ControlAccountProjection>,
pub equity: Vec<ControlAccountProjection>,
pub revenues: Vec<ControlAccountProjection>,
pub expenses: Vec<ControlAccountProjection>,
}

pub(super) fn project<'a>(
Expand Down

0 comments on commit 4e2a6e4

Please sign in to comment.