pub struct CompanyCode {Show 15 fields
pub code: String,
pub name: String,
pub legal_name: String,
pub currency: String,
pub country: String,
pub city: Option<String>,
pub fiscal_year_variant: FiscalYearVariant,
pub coa_id: String,
pub parent_company: Option<String>,
pub is_group_parent: bool,
pub controlling_area: Option<String>,
pub credit_control_area: Option<String>,
pub time_zone: String,
pub vat_number: Option<String>,
pub tax_jurisdiction: Option<String>,
}Expand description
Company code representing a legal entity or organizational unit.
In SAP terminology, a company code is the smallest organizational unit for which a complete self-contained set of accounts can be drawn up for external reporting.
Fields§
§code: StringCompany code identifier (typically 4 characters)
name: StringCompany name
legal_name: StringLegal name (for official documents)
currency: StringLocal/functional currency (ISO 4217)
country: StringCountry code (ISO 3166-1 alpha-2)
city: Option<String>City
fiscal_year_variant: FiscalYearVariantFiscal year variant
coa_id: StringChart of accounts ID used by this company
parent_company: Option<String>Parent company code (for group structure)
is_group_parent: boolIs this the group parent/consolidation entity
controlling_area: Option<String>Controlling area for cost accounting
credit_control_area: Option<String>Credit control area
time_zone: StringTime zone
vat_number: Option<String>VAT registration number
tax_jurisdiction: Option<String>Tax jurisdiction
Implementations§
Trait Implementations§
Source§impl Clone for CompanyCode
impl Clone for CompanyCode
Source§fn clone(&self) -> CompanyCode
fn clone(&self) -> CompanyCode
Returns a duplicate of the value. Read more
1.0.0 · 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 CompanyCode
impl Debug for CompanyCode
Source§impl<'de> Deserialize<'de> for CompanyCode
impl<'de> Deserialize<'de> for CompanyCode
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&CompanyCode> for Company
impl From<&CompanyCode> for Company
Source§fn from(cc: &CompanyCode) -> Self
fn from(cc: &CompanyCode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CompanyCode
impl RefUnwindSafe for CompanyCode
impl Send for CompanyCode
impl Sync for CompanyCode
impl Unpin for CompanyCode
impl UnwindSafe for CompanyCode
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