pub struct FinancialStatement {Show 62 fields
pub id: Uuid,
pub statement_number: String,
pub statement_type: StatementType,
pub name: String,
pub fiscal_period_id: Option<Uuid>,
pub fiscal_year: i32,
pub fiscal_month: Option<i32>,
pub as_of_date: NaiveDate,
pub period_start: Option<NaiveDate>,
pub period_end: Option<NaiveDate>,
pub is_comparative: bool,
pub comparative_period_id: Option<Uuid>,
pub comparative_as_of_date: Option<NaiveDate>,
pub status: StatementStatus,
pub total_current_assets: Option<Decimal>,
pub total_non_current_assets: Option<Decimal>,
pub total_assets: Option<Decimal>,
pub total_current_liabilities: Option<Decimal>,
pub total_non_current_liabilities: Option<Decimal>,
pub total_liabilities: Option<Decimal>,
pub total_equity: Option<Decimal>,
pub balance_check: bool,
pub balance_difference: Option<Decimal>,
pub total_revenue: Option<Decimal>,
pub total_cogs: Option<Decimal>,
pub gross_profit: Option<Decimal>,
pub gross_profit_margin: Option<Decimal>,
pub total_operating_expenses: Option<Decimal>,
pub operating_income: Option<Decimal>,
pub operating_margin: Option<Decimal>,
pub total_other_income: Option<Decimal>,
pub total_other_expenses: Option<Decimal>,
pub income_before_tax: Option<Decimal>,
pub tax_expense: Option<Decimal>,
pub net_income: Option<Decimal>,
pub net_profit_margin: Option<Decimal>,
pub cash_from_operations: Option<Decimal>,
pub cash_from_investing: Option<Decimal>,
pub cash_from_financing: Option<Decimal>,
pub net_cash_change: Option<Decimal>,
pub beginning_cash: Option<Decimal>,
pub ending_cash: Option<Decimal>,
pub total_debits: Option<Decimal>,
pub total_credits: Option<Decimal>,
pub trial_balance_check: bool,
pub line_items: Value,
pub comparative_data: Value,
pub variance_data: Value,
pub notes: Value,
pub management_notes: Option<String>,
pub generated_at: Option<DateTime<Utc>>,
pub generated_by: Option<Uuid>,
pub generation_parameters: Value,
pub reviewed_at: Option<DateTime<Utc>>,
pub reviewed_by: Option<Uuid>,
pub approved_at: Option<DateTime<Utc>>,
pub approved_by: Option<Uuid>,
pub published_at: Option<DateTime<Utc>>,
pub pdf_url: Option<String>,
pub excel_url: Option<String>,
pub currency: String,
pub metadata: AuditMetadata,
}Fields§
§id: Uuid§statement_number: String§statement_type: StatementType§name: String§fiscal_period_id: Option<Uuid>§fiscal_year: i32§fiscal_month: Option<i32>§as_of_date: NaiveDate§period_start: Option<NaiveDate>§period_end: Option<NaiveDate>§is_comparative: bool§comparative_period_id: Option<Uuid>§comparative_as_of_date: Option<NaiveDate>§status: StatementStatus§total_current_assets: Option<Decimal>§total_non_current_assets: Option<Decimal>§total_assets: Option<Decimal>§total_current_liabilities: Option<Decimal>§total_non_current_liabilities: Option<Decimal>§total_liabilities: Option<Decimal>§total_equity: Option<Decimal>§balance_check: bool§balance_difference: Option<Decimal>§total_revenue: Option<Decimal>§total_cogs: Option<Decimal>§gross_profit: Option<Decimal>§gross_profit_margin: Option<Decimal>§total_operating_expenses: Option<Decimal>§operating_income: Option<Decimal>§operating_margin: Option<Decimal>§total_other_income: Option<Decimal>§total_other_expenses: Option<Decimal>§income_before_tax: Option<Decimal>§tax_expense: Option<Decimal>§net_income: Option<Decimal>§net_profit_margin: Option<Decimal>§cash_from_operations: Option<Decimal>§cash_from_investing: Option<Decimal>§cash_from_financing: Option<Decimal>§net_cash_change: Option<Decimal>§beginning_cash: Option<Decimal>§ending_cash: Option<Decimal>§total_debits: Option<Decimal>§total_credits: Option<Decimal>§trial_balance_check: bool§line_items: Value§comparative_data: Value§variance_data: Value§notes: Value§management_notes: Option<String>§generated_at: Option<DateTime<Utc>>§generated_by: Option<Uuid>§generation_parameters: Value§reviewed_at: Option<DateTime<Utc>>§reviewed_by: Option<Uuid>§approved_at: Option<DateTime<Utc>>§approved_by: Option<Uuid>§published_at: Option<DateTime<Utc>>§pdf_url: Option<String>§excel_url: Option<String>§currency: String§metadata: AuditMetadataImplementations§
Source§impl FinancialStatement
impl FinancialStatement
Sourcepub fn builder() -> FinancialStatementBuilder
pub fn builder() -> FinancialStatementBuilder
Create a builder for FinancialStatement
Sourcepub fn new(
statement_number: String,
statement_type: StatementType,
name: String,
fiscal_year: i32,
as_of_date: NaiveDate,
is_comparative: bool,
status: StatementStatus,
balance_check: bool,
trial_balance_check: bool,
line_items: Value,
comparative_data: Value,
variance_data: Value,
notes: Value,
generation_parameters: Value,
currency: String,
) -> Self
pub fn new( statement_number: String, statement_type: StatementType, name: String, fiscal_year: i32, as_of_date: NaiveDate, is_comparative: bool, status: StatementStatus, balance_check: bool, trial_balance_check: bool, line_items: Value, comparative_data: Value, variance_data: Value, notes: Value, generation_parameters: Value, currency: String, ) -> Self
Create a new FinancialStatement with required fields
Sourcepub fn typed_id(&self) -> FinancialStatementId
pub fn typed_id(&self) -> FinancialStatementId
Get a strongly-typed ID for this entity
Sourcepub fn created_at(&self) -> Option<&DateTime<Utc>>
pub fn created_at(&self) -> Option<&DateTime<Utc>>
Get when this entity was created
Sourcepub fn updated_at(&self) -> Option<&DateTime<Utc>>
pub fn updated_at(&self) -> Option<&DateTime<Utc>>
Get when this entity was last updated
Sourcepub fn is_deleted(&self) -> bool
pub fn is_deleted(&self) -> bool
Check if this entity is soft deleted
Sourcepub fn deleted_at(&self) -> Option<&DateTime<Utc>>
pub fn deleted_at(&self) -> Option<&DateTime<Utc>>
Get when this entity was deleted
Sourcepub fn created_by(&self) -> Option<&Uuid>
pub fn created_by(&self) -> Option<&Uuid>
Get who created this entity
Sourcepub fn updated_by(&self) -> Option<&Uuid>
pub fn updated_by(&self) -> Option<&Uuid>
Get who last updated this entity
Sourcepub fn deleted_by(&self) -> Option<&Uuid>
pub fn deleted_by(&self) -> Option<&Uuid>
Get who deleted this entity
Sourcepub fn status(&self) -> &StatementStatus
pub fn status(&self) -> &StatementStatus
Get the current status
Sourcepub fn with_fiscal_period_id(self, value: Uuid) -> Self
pub fn with_fiscal_period_id(self, value: Uuid) -> Self
Set the fiscal_period_id field (chainable)
Sourcepub fn with_fiscal_month(self, value: i32) -> Self
pub fn with_fiscal_month(self, value: i32) -> Self
Set the fiscal_month field (chainable)
Sourcepub fn with_period_start(self, value: NaiveDate) -> Self
pub fn with_period_start(self, value: NaiveDate) -> Self
Set the period_start field (chainable)
Sourcepub fn with_period_end(self, value: NaiveDate) -> Self
pub fn with_period_end(self, value: NaiveDate) -> Self
Set the period_end field (chainable)
Sourcepub fn with_comparative_period_id(self, value: Uuid) -> Self
pub fn with_comparative_period_id(self, value: Uuid) -> Self
Set the comparative_period_id field (chainable)
Sourcepub fn with_comparative_as_of_date(self, value: NaiveDate) -> Self
pub fn with_comparative_as_of_date(self, value: NaiveDate) -> Self
Set the comparative_as_of_date field (chainable)
Sourcepub fn with_total_current_assets(self, value: Decimal) -> Self
pub fn with_total_current_assets(self, value: Decimal) -> Self
Set the total_current_assets field (chainable)
Sourcepub fn with_total_non_current_assets(self, value: Decimal) -> Self
pub fn with_total_non_current_assets(self, value: Decimal) -> Self
Set the total_non_current_assets field (chainable)
Sourcepub fn with_total_assets(self, value: Decimal) -> Self
pub fn with_total_assets(self, value: Decimal) -> Self
Set the total_assets field (chainable)
Sourcepub fn with_total_current_liabilities(self, value: Decimal) -> Self
pub fn with_total_current_liabilities(self, value: Decimal) -> Self
Set the total_current_liabilities field (chainable)
Sourcepub fn with_total_non_current_liabilities(self, value: Decimal) -> Self
pub fn with_total_non_current_liabilities(self, value: Decimal) -> Self
Set the total_non_current_liabilities field (chainable)
Sourcepub fn with_total_liabilities(self, value: Decimal) -> Self
pub fn with_total_liabilities(self, value: Decimal) -> Self
Set the total_liabilities field (chainable)
Sourcepub fn with_total_equity(self, value: Decimal) -> Self
pub fn with_total_equity(self, value: Decimal) -> Self
Set the total_equity field (chainable)
Sourcepub fn with_balance_difference(self, value: Decimal) -> Self
pub fn with_balance_difference(self, value: Decimal) -> Self
Set the balance_difference field (chainable)
Sourcepub fn with_total_revenue(self, value: Decimal) -> Self
pub fn with_total_revenue(self, value: Decimal) -> Self
Set the total_revenue field (chainable)
Sourcepub fn with_total_cogs(self, value: Decimal) -> Self
pub fn with_total_cogs(self, value: Decimal) -> Self
Set the total_cogs field (chainable)
Sourcepub fn with_gross_profit(self, value: Decimal) -> Self
pub fn with_gross_profit(self, value: Decimal) -> Self
Set the gross_profit field (chainable)
Sourcepub fn with_gross_profit_margin(self, value: Decimal) -> Self
pub fn with_gross_profit_margin(self, value: Decimal) -> Self
Set the gross_profit_margin field (chainable)
Sourcepub fn with_total_operating_expenses(self, value: Decimal) -> Self
pub fn with_total_operating_expenses(self, value: Decimal) -> Self
Set the total_operating_expenses field (chainable)
Sourcepub fn with_operating_income(self, value: Decimal) -> Self
pub fn with_operating_income(self, value: Decimal) -> Self
Set the operating_income field (chainable)
Sourcepub fn with_operating_margin(self, value: Decimal) -> Self
pub fn with_operating_margin(self, value: Decimal) -> Self
Set the operating_margin field (chainable)
Sourcepub fn with_total_other_income(self, value: Decimal) -> Self
pub fn with_total_other_income(self, value: Decimal) -> Self
Set the total_other_income field (chainable)
Sourcepub fn with_total_other_expenses(self, value: Decimal) -> Self
pub fn with_total_other_expenses(self, value: Decimal) -> Self
Set the total_other_expenses field (chainable)
Sourcepub fn with_income_before_tax(self, value: Decimal) -> Self
pub fn with_income_before_tax(self, value: Decimal) -> Self
Set the income_before_tax field (chainable)
Sourcepub fn with_tax_expense(self, value: Decimal) -> Self
pub fn with_tax_expense(self, value: Decimal) -> Self
Set the tax_expense field (chainable)
Sourcepub fn with_net_income(self, value: Decimal) -> Self
pub fn with_net_income(self, value: Decimal) -> Self
Set the net_income field (chainable)
Sourcepub fn with_net_profit_margin(self, value: Decimal) -> Self
pub fn with_net_profit_margin(self, value: Decimal) -> Self
Set the net_profit_margin field (chainable)
Sourcepub fn with_cash_from_operations(self, value: Decimal) -> Self
pub fn with_cash_from_operations(self, value: Decimal) -> Self
Set the cash_from_operations field (chainable)
Sourcepub fn with_cash_from_investing(self, value: Decimal) -> Self
pub fn with_cash_from_investing(self, value: Decimal) -> Self
Set the cash_from_investing field (chainable)
Sourcepub fn with_cash_from_financing(self, value: Decimal) -> Self
pub fn with_cash_from_financing(self, value: Decimal) -> Self
Set the cash_from_financing field (chainable)
Sourcepub fn with_net_cash_change(self, value: Decimal) -> Self
pub fn with_net_cash_change(self, value: Decimal) -> Self
Set the net_cash_change field (chainable)
Sourcepub fn with_beginning_cash(self, value: Decimal) -> Self
pub fn with_beginning_cash(self, value: Decimal) -> Self
Set the beginning_cash field (chainable)
Sourcepub fn with_ending_cash(self, value: Decimal) -> Self
pub fn with_ending_cash(self, value: Decimal) -> Self
Set the ending_cash field (chainable)
Sourcepub fn with_total_debits(self, value: Decimal) -> Self
pub fn with_total_debits(self, value: Decimal) -> Self
Set the total_debits field (chainable)
Sourcepub fn with_total_credits(self, value: Decimal) -> Self
pub fn with_total_credits(self, value: Decimal) -> Self
Set the total_credits field (chainable)
Sourcepub fn with_management_notes(self, value: String) -> Self
pub fn with_management_notes(self, value: String) -> Self
Set the management_notes field (chainable)
Sourcepub fn with_generated_at(self, value: DateTime<Utc>) -> Self
pub fn with_generated_at(self, value: DateTime<Utc>) -> Self
Set the generated_at field (chainable)
Sourcepub fn with_generated_by(self, value: Uuid) -> Self
pub fn with_generated_by(self, value: Uuid) -> Self
Set the generated_by field (chainable)
Sourcepub fn with_reviewed_at(self, value: DateTime<Utc>) -> Self
pub fn with_reviewed_at(self, value: DateTime<Utc>) -> Self
Set the reviewed_at field (chainable)
Sourcepub fn with_reviewed_by(self, value: Uuid) -> Self
pub fn with_reviewed_by(self, value: Uuid) -> Self
Set the reviewed_by field (chainable)
Sourcepub fn with_approved_at(self, value: DateTime<Utc>) -> Self
pub fn with_approved_at(self, value: DateTime<Utc>) -> Self
Set the approved_at field (chainable)
Sourcepub fn with_approved_by(self, value: Uuid) -> Self
pub fn with_approved_by(self, value: Uuid) -> Self
Set the approved_by field (chainable)
Sourcepub fn with_published_at(self, value: DateTime<Utc>) -> Self
pub fn with_published_at(self, value: DateTime<Utc>) -> Self
Set the published_at field (chainable)
Sourcepub fn with_pdf_url(self, value: String) -> Self
pub fn with_pdf_url(self, value: String) -> Self
Set the pdf_url field (chainable)
Sourcepub fn with_excel_url(self, value: String) -> Self
pub fn with_excel_url(self, value: String) -> Self
Set the excel_url field (chainable)
Sourcepub fn apply_patch(&mut self, fields: HashMap<String, Value>)
pub fn apply_patch(&mut self, fields: HashMap<String, Value>)
Apply partial updates from a map of field name to JSON value
Trait Implementations§
Source§impl ApplyUpdateDto<UpdateFinancialStatementDto> for FinancialStatement
impl ApplyUpdateDto<UpdateFinancialStatementDto> for FinancialStatement
fn apply_update(self, dto: UpdateFinancialStatementDto) -> ServiceResult<Self>
Source§impl Clone for FinancialStatement
impl Clone for FinancialStatement
Source§impl CrudRepository<FinancialStatement> for FinancialStatementRepository
impl CrudRepository<FinancialStatement> for FinancialStatementRepository
?include= relations: fetch rows from table by id list, as JSON
(raw row_to_json). table comes from EntityRepoMeta::relations()
(generator-emitted), never client input. Default: no expansion. The
Postgres-backed generated repos override this via impl_crud_repository!.Source§fn create<'life0, 'async_trait>(
&'life0 self,
entity: FinancialStatement,
) -> Pin<Box<dyn Future<Output = Result<FinancialStatement, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
entity: FinancialStatement,
) -> Pin<Box<dyn Future<Output = Result<FinancialStatement, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn find_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn find_by_id_including_deleted<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_by_id_including_deleted<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn update<'life0, 'async_trait>(
&'life0 self,
entity: FinancialStatement,
) -> Pin<Box<dyn Future<Output = Result<FinancialStatement, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update<'life0, 'async_trait>(
&'life0 self,
entity: FinancialStatement,
) -> Pin<Box<dyn Future<Output = Result<FinancialStatement, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn soft_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn soft_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn restore<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn restore<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn hard_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn hard_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn list<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
) -> Pin<Box<dyn Future<Output = Result<(Vec<FinancialStatement>, u64), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
) -> Pin<Box<dyn Future<Output = Result<(Vec<FinancialStatement>, u64), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn list_filtered<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
filters: HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<FinancialStatement>, u64), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_filtered<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
filters: HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<FinancialStatement>, u64), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn list_filtered_with_info<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
filters: HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<FinancialStatement>, PaginationInfo), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_filtered_with_info<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
filters: HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<FinancialStatement>, PaginationInfo), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
list_filtered, carrying the pagination info (cursor positions
included) so the HTTP layer can surface keyset paging. Default: the
tuple form with the cursor fields absent; the generated Postgres
repositories override this with the real keyset walk.Source§fn table_name(&self) -> Option<&str>
fn table_name(&self) -> Option<&str>
list_filtered. Read morefn aggregate_filtered<'life0, 'life1, 'async_trait>(
&'life0 self,
spec: &'life1 AggregateSpec,
filters: HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<AggregateResult, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn list_deleted<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
) -> Pin<Box<dyn Future<Output = Result<(Vec<FinancialStatement>, u64), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_deleted<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
) -> Pin<Box<dyn Future<Output = Result<(Vec<FinancialStatement>, u64), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn count_deleted<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn count_deleted<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn bulk_create<'life0, 'async_trait>(
&'life0 self,
entities: Vec<FinancialStatement>,
) -> Pin<Box<dyn Future<Output = Result<Vec<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn bulk_create<'life0, 'async_trait>(
&'life0 self,
entities: Vec<FinancialStatement>,
) -> Pin<Box<dyn Future<Output = Result<Vec<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn empty_trash<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn empty_trash<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn bulk_soft_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn bulk_soft_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn bulk_restore<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<Vec<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn bulk_restore<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<Vec<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn bulk_hard_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn bulk_hard_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn restore_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn restore_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn bulk_update<'life0, 'async_trait>(
&'life0 self,
entities: Vec<FinancialStatement>,
) -> Pin<Box<dyn Future<Output = Result<Vec<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn bulk_update<'life0, 'async_trait>(
&'life0 self,
entities: Vec<FinancialStatement>,
) -> Pin<Box<dyn Future<Output = Result<Vec<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl Debug for FinancialStatement
impl Debug for FinancialStatement
Source§impl<'de> Deserialize<'de> for FinancialStatement
impl<'de> Deserialize<'de> for FinancialStatement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Entity for FinancialStatement
impl Entity for FinancialStatement
Source§impl EntityRepoMeta for FinancialStatement
impl EntityRepoMeta for FinancialStatement
Source§fn column_types() -> HashMap<String, String>
fn column_types() -> HashMap<String, String>
{"id": "uuid"}).Source§fn search_fields() -> &'static [&'static str]
fn search_fields() -> &'static [&'static str]
Source§fn relations() -> &'static [(&'static str, &'static str, &'static str)]
fn relations() -> &'static [(&'static str, &'static str, &'static str)]
?include=<name>, as
(relation_name, target_table, local_fk_field) — all response keys
(relation_name/local_fk in camelCase; target_table is the DB table).
Default: none.Source§fn private_fields() -> &'static [&'static str]
fn private_fields() -> &'static [&'static str]
@private). Stripped for everyone else.Source§fn secret_fields() -> &'static [&'static str]
fn secret_fields() -> &'static [&'static str]
@sensitive): no
caller is served them, a platform caller or the row’s owner included.Source§fn relation_secret_fields(_relation: &str) -> &'static [&'static str]
fn relation_secret_fields(_relation: &str) -> &'static [&'static str]
@sensitive fields (camelCase response keys) of the model a to-one
relation points at, stripped from the related row an ?include= expands.
Keyed by the relation name of relations. Default: none.Source§fn owner_field() -> Option<&'static str>
fn owner_field() -> Option<&'static str>
@owner),
compared against the caller’s access scope to decide private-field
visibility. None = the entity has no owner concept.Source§impl From<&FinancialStatement> for FinancialStatementResponseDto
impl From<&FinancialStatement> for FinancialStatementResponseDto
Source§fn from(entity: &FinancialStatement) -> Self
fn from(entity: &FinancialStatement) -> Self
Source§impl From<CreateFinancialStatementDto> for FinancialStatement
impl From<CreateFinancialStatementDto> for FinancialStatement
Source§fn from(dto: CreateFinancialStatementDto) -> Self
fn from(dto: CreateFinancialStatementDto) -> Self
Source§impl From<FinancialStatement> for FinancialStatementResponseDto
impl From<FinancialStatement> for FinancialStatementResponseDto
Source§fn from(entity: FinancialStatement) -> Self
fn from(entity: FinancialStatement) -> Self
Source§impl From<FinancialStatement> for FinancialStatementSummaryDto
impl From<FinancialStatement> for FinancialStatementSummaryDto
Source§fn from(entity: FinancialStatement) -> Self
fn from(entity: FinancialStatement) -> Self
Source§impl FromCreateDto<CreateFinancialStatementDto> for FinancialStatement
impl FromCreateDto<CreateFinancialStatementDto> for FinancialStatement
fn from_create_dto(dto: CreateFinancialStatementDto) -> ServiceResult<Self>
Source§impl<'a, R: Row> FromRow<'a, R> for FinancialStatementwhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
StatementType: Decode<'a, R::Database> + Type<R::Database>,
Option<Uuid>: Decode<'a, R::Database> + Type<R::Database>,
i32: Decode<'a, R::Database> + Type<R::Database>,
Option<i32>: Decode<'a, R::Database> + Type<R::Database>,
NaiveDate: Decode<'a, R::Database> + Type<R::Database>,
Option<NaiveDate>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
StatementStatus: Decode<'a, R::Database> + Type<R::Database>,
Option<Decimal>: Decode<'a, R::Database> + Type<R::Database>,
Value: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
Json<AuditMetadata>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for FinancialStatementwhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
StatementType: Decode<'a, R::Database> + Type<R::Database>,
Option<Uuid>: Decode<'a, R::Database> + Type<R::Database>,
i32: Decode<'a, R::Database> + Type<R::Database>,
Option<i32>: Decode<'a, R::Database> + Type<R::Database>,
NaiveDate: Decode<'a, R::Database> + Type<R::Database>,
Option<NaiveDate>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
StatementStatus: Decode<'a, R::Database> + Type<R::Database>,
Option<Decimal>: Decode<'a, R::Database> + Type<R::Database>,
Value: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
Json<AuditMetadata>: Decode<'a, R::Database> + Type<R::Database>,
Source§impl PersistentEntity for FinancialStatement
impl PersistentEntity for FinancialStatement
Source§fn set_entity_id(&mut self, id: String)
fn set_entity_id(&mut self, id: String)
Source§fn set_created_at(&mut self, ts: DateTime<Utc>)
fn set_created_at(&mut self, ts: DateTime<Utc>)
Source§fn set_updated_at(&mut self, ts: DateTime<Utc>)
fn set_updated_at(&mut self, ts: DateTime<Utc>)
Source§fn is_deleted(&self) -> bool
fn is_deleted(&self) -> bool
Source§fn mark_deleted(&mut self)
fn mark_deleted(&mut self)
Source§fn generate_id() -> String
fn generate_id() -> String
Source§fn write_protected_fields() -> &'static [&'static str]
fn write_protected_fields() -> &'static [&'static str]
Source§impl Serialize for FinancialStatement
impl Serialize for FinancialStatement
Source§impl WriteGuard<FinancialStatement> for FinancialStatementRowRules
impl WriteGuard<FinancialStatement> for FinancialStatementRowRules
fn check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 WriteCtx<'life2, FinancialStatement>,
) -> Pin<Box<dyn Future<Output = GuardOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for FinancialStatement
impl RefUnwindSafe for FinancialStatement
impl Send for FinancialStatement
impl Sync for FinancialStatement
impl Unpin for FinancialStatement
impl UnsafeUnpin for FinancialStatement
impl UnwindSafe for FinancialStatement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more