pub struct AutoPostingConfig {Show 17 fields
pub id: Uuid,
pub config_name: String,
pub cash_account_id: Uuid,
pub accounts_receivable_account_id: Uuid,
pub inventory_account_id: Uuid,
pub accounts_payable_account_id: Uuid,
pub unearned_revenue_account_id: Option<Uuid>,
pub sales_revenue_account_id: Uuid,
pub shipping_revenue_account_id: Option<Uuid>,
pub cogs_account_id: Uuid,
pub bad_debt_expense_account_id: Option<Uuid>,
pub fx_gain_loss_account_id: Option<Uuid>,
pub auto_post_depreciation: bool,
pub auto_post_revenue_recognition: bool,
pub is_active: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Auto-posting configuration
Fields§
§id: Uuid§config_name: String§cash_account_id: Uuid§accounts_receivable_account_id: Uuid§inventory_account_id: Uuid§accounts_payable_account_id: Uuid§unearned_revenue_account_id: Option<Uuid>§sales_revenue_account_id: Uuid§shipping_revenue_account_id: Option<Uuid>§cogs_account_id: Uuid§bad_debt_expense_account_id: Option<Uuid>§fx_gain_loss_account_id: Option<Uuid>Account receiving unrealized FX gains/losses posted by period-end revaluation.
auto_post_depreciation: boolAuto-post a journal entry when fixed-asset depreciation is posted.
auto_post_revenue_recognition: boolAuto-post a journal entry when deferred revenue is recognized.
is_active: bool§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for AutoPostingConfig
impl Clone for AutoPostingConfig
Source§fn clone(&self) -> AutoPostingConfig
fn clone(&self) -> AutoPostingConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutoPostingConfig
impl Debug for AutoPostingConfig
Source§impl<'de> Deserialize<'de> for AutoPostingConfig
impl<'de> Deserialize<'de> for AutoPostingConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AutoPostingConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AutoPostingConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AutoPostingConfig
impl Serialize for AutoPostingConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AutoPostingConfig
impl RefUnwindSafe for AutoPostingConfig
impl Send for AutoPostingConfig
impl Sync for AutoPostingConfig
impl Unpin for AutoPostingConfig
impl UnsafeUnpin for AutoPostingConfig
impl UnwindSafe for AutoPostingConfig
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
Mutably borrows from an owned value. Read more