pub struct GenesisConfig {
Show 13 fields pub creation_time: UnixTimestamp, pub accounts: BTreeMap<Pubkey, Account>, pub native_instruction_processors: Vec<(String, Pubkey)>, pub rewards_pools: BTreeMap<Pubkey, Account>, pub ticks_per_slot: u64, pub unused: u64, pub poh_config: PohConfig, pub __backwards_compat_with_v0_23: u64, pub fee_rate_governor: FeeRateGovernor, pub rent: Rent, pub inflation: Inflation, pub epoch_schedule: EpochSchedule, pub cluster_type: ClusterType,
}

Fields

creation_time: UnixTimestamp

when the network (bootstrap validator) was started relative to the UNIX Epoch

accounts: BTreeMap<Pubkey, Account>

initial accounts

native_instruction_processors: Vec<(String, Pubkey)>

built-in programs

rewards_pools: BTreeMap<Pubkey, Account>

accounts for network rewards, these do not count towards capitalization

ticks_per_slot: u64unused: u64poh_config: PohConfig

network speed configuration

__backwards_compat_with_v0_23: u64

this field exists only to ensure that the binary layout of GenesisConfig remains compatible with the Solana v0.23 release line

fee_rate_governor: FeeRateGovernor

transaction fee config

rent: Rent

rent config

inflation: Inflation

inflation config

epoch_schedule: EpochSchedule

how slots map to epochs

cluster_type: ClusterType

network runlevel

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.