Struct solana_vest_program::vest_state::VestState[][src]

pub struct VestState {
    pub terminator_pubkey: Pubkey,
    pub payee_pubkey: Pubkey,
    pub start_date_time: DateTime<Utc>,
    pub date_pubkey: Pubkey,
    pub total_lamports: u64,
    pub redeemed_lamports: u64,
    pub reneged_lamports: u64,
    pub is_fully_vested: bool,
}

Fields

terminator_pubkey: Pubkey

The address authorized to terminate this contract with a signed Terminate instruction

payee_pubkey: Pubkey

The address authorized to redeem vested tokens

start_date_time: DateTime<Utc>

The day from which the vesting contract begins

date_pubkey: Pubkey

Address of an account containing a trusted date, used to drive the vesting schedule

total_lamports: u64

The number of lamports to send the payee if the schedule completes

redeemed_lamports: u64

The number of lamports the payee has already redeemed

reneged_lamports: u64

The number of lamports the terminator repurchased

is_fully_vested: bool

True if the terminator has declared this contract fully vested.

Implementations

Redeem vested tokens.

Renege on the given number of tokens and send them to the given payee.

Mark this contract as fully vested, regardless of the date.

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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)

recently added

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.