data.models.hr #
HR Models
this is probably experimental and not used yet, has set of objects as can be used for modelling a company structure
fn new_from_session #
fn new_from_session(mut session base.Session) !HRData
enum CountryID #
enum CountryID {
zanzibar
belgium
egypt
}
struct Company #
struct Company {
pub mut:
name string
country &Country
description string
purpose string
address string
shares ?CompanyShares
}
struct Country #
struct Country {
pub mut:
name string
id CountryID
}
struct DigitalPayout #
struct DigitalPayout {
pub mut:
amount string
wallet_address string
wallet_type string
wallet_currency string
period string = 'month'
number_of_months_behind u32
}
struct HRData #
struct HRData {
pub mut:
people map[string]Person
companies map[string]Company
share_holdres []ShareHolder
countries map[CountryID]Country
errors []string
}
struct LoanOutstanding #
struct LoanOutstanding {
pub mut:
amount string
start_date string
payback_period string
payback_period_number u32
comment ?string
url ?string
}
struct Person #
struct Person {
pub mut:
username string
first_name string
last_name string
telephone_numbers []string
emails []string
linkedin ?string
github ?string
gitourworld ?string
url ?string
description ?string
country_of_residence CountryID
salary_outstanding ?SalaryOutstanding
shares ?Shares
tokens []Tokens
loan_outstanding []LoanOutstanding
remuneration ?Remuneration
}
struct Remuneration #
struct Remuneration {
pub mut:
monthly_salary string
reward_pool_points u32
car_per_month string
lodging_per_month string
travel_max string
travel_average string
expense_max string
expense_average string
payout_digital map[string]DigitalPayout
comment ?string
url ?string
}
struct SalaryOutstanding #
struct SalaryOutstanding {
pub mut:
company string
amount string
comment ?string
url ?string
}
struct Tokens #
struct Tokens {
pub mut:
amount u64
wallet_address string
wallet_type string
wallet_currency string
comment ?string
}