pub struct VoltVault {
Show 53 fields pub admin_key: Pubkey, pub seed: Pubkey, pub transfer_window: u64, pub start_transfer_time: u64, pub end_transfer_time: u64, pub initialized: bool, pub curr_option_was_settled: bool, pub must_swap_premium_to_underlying: bool, pub next_option_was_set: bool, pub first_ever_option_was_set: bool, pub instant_transfers_enabled: bool, pub prepare_is_finished: bool, pub enter_is_finished: bool, pub round_has_started: bool, pub round_number: u64, pub total_underlying_pre_enter: u64, pub total_underlying_post_settle: u64, pub total_volt_tokens_post_settle: u64, pub vault_authority: Pubkey, pub deposit_pool: Pubkey, pub premium_pool: Pubkey, pub option_pool: Pubkey, pub writer_token_pool: Pubkey, pub vault_mint: Pubkey, pub underlying_asset_mint: Pubkey, pub quote_asset_mint: Pubkey, pub option_mint: Pubkey, pub writer_token_mint: Pubkey, pub option_market: Pubkey, pub vault_type: u64, pub underlying_amount_per_contract: u64, pub quote_amount_per_contract: u64, pub expiration_unix_timestamp: i64, pub expiration_interval: u64, pub upper_bound_otm_strike_factor: u64, pub have_taken_withdrawal_fees: bool, pub serum_spot_market: Pubkey, pub open_orders_bump: u8, pub open_orders_init_bump: u8, pub ul_open_orders_bump: u8, pub ul_open_orders: Pubkey, pub ul_open_orders_initialized: bool, pub bump_authority: u8, pub serum_order_size_options: u64, pub individual_capacity: u64, pub serum_order_type: u64, pub serum_limit: u16, pub serum_self_trade_behavior: u16, pub serum_client_order_id: u64, pub whitelist_token_mint: Pubkey, pub permissioned_market_premium_mint: Pubkey, pub permissioned_market_premium_pool: Pubkey, pub capacity: u64,
}

Fields

admin_key: Pubkeyseed: Pubkeytransfer_window: u64start_transfer_time: u64end_transfer_time: u64initialized: boolcurr_option_was_settled: boolmust_swap_premium_to_underlying: boolnext_option_was_set: boolfirst_ever_option_was_set: boolinstant_transfers_enabled: boolprepare_is_finished: boolenter_is_finished: boolround_has_started: boolround_number: u64total_underlying_pre_enter: u64total_underlying_post_settle: u64total_volt_tokens_post_settle: u64vault_authority: Pubkeydeposit_pool: Pubkeypremium_pool: Pubkeyoption_pool: Pubkeywriter_token_pool: Pubkeyvault_mint: Pubkeyunderlying_asset_mint: Pubkeyquote_asset_mint: Pubkeyoption_mint: Pubkeywriter_token_mint: Pubkeyoption_market: Pubkeyvault_type: u64underlying_amount_per_contract: u64

The amount of the underlying asset that derives a single option

quote_amount_per_contract: u64expiration_unix_timestamp: i64

The Unix timestamp at which the contracts in this market expire

expiration_interval: u64upper_bound_otm_strike_factor: u64have_taken_withdrawal_fees: bool

A flag to set and use to when running a memcmp query. This will be set when Serum markets are closed and expiration is validated

serum_spot_market: Pubkeyopen_orders_bump: u8open_orders_init_bump: u8ul_open_orders_bump: u8ul_open_orders: Pubkeyul_open_orders_initialized: boolbump_authority: u8serum_order_size_options: u64individual_capacity: u64serum_order_type: u64serum_limit: u16serum_self_trade_behavior: u16serum_client_order_id: u64whitelist_token_mint: Pubkeypermissioned_market_premium_mint: Pubkeypermissioned_market_premium_pool: Pubkeycapacity: u64

Implementations

Trait Implementations

Deserializes previously initialized account data. Should fail for all uninitialized accounts, where the bytes are zeroed. Implementations should be unique to a particular account type so that one can never successfully deserialize the data of one account type into another. For example, if the SPL token program were to implement this trait, it should be impossible to deserialize a Mint account into a token Account. Read more

Deserializes account data without checking the account discriminator. This should only be used on account initialization, when the bytes of the account are zeroed. Read more

Serializes the account data into writer.

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more

Deserialize this instance from a slice of bytes.

Serialize this instance into a vector of bytes.

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

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

Uses borrowed data to replace owned data, usually by cloning. 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.