Skip to content

data.hr #

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 CompanyShares #

struct CompanyShares {
pub mut:
	number_of_shares u64
	share_value      string
	valuation_date   string
}

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 ?SalaryOutsdanding
	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 SalaryOutsdanding #

struct SalaryOutsdanding {
pub mut:
	company string
	amount  string
	comment ?string
	url     ?string
}

struct ShareHolder #

struct ShareHolder {
pub mut:
	person       &Person
	company_name string
	amount       u32
	comment      ?string
}

struct Shares #

struct Shares {
pub mut:
	company string
	amount  u64
	comment string
}

struct Tokens #

struct Tokens {
pub mut:
	amount          u64
	wallet_address  string
	wallet_type     string
	wallet_currency string
	comment         ?string
}