Struct solana_vest_program::vest_state::VestState [−][src]
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
impl VestState
[src]
pub fn serialize(&self, output: &mut [u8]) -> Result<(), InstructionError>
[src]
pub fn deserialize(input: &[u8]) -> Result<Self, InstructionError>
[src]
pub fn redeem_tokens(
&mut self,
contract_account: &mut Account,
current_date: Date<Utc>,
payee_account: &mut Account
)
[src]
&mut self,
contract_account: &mut Account,
current_date: Date<Utc>,
payee_account: &mut Account
)
Redeem vested tokens.
pub fn renege(
&mut self,
contract_account: &mut Account,
payee_account: &mut Account,
lamports: u64
)
[src]
&mut self,
contract_account: &mut Account,
payee_account: &mut Account,
lamports: u64
)
Renege on the given number of tokens and send them to the given payee.
pub fn vest_all(&mut self)
[src]
Mark this contract as fully vested, regardless of the date.
Trait Implementations
impl Clone for VestState
[src]
impl Debug for VestState
[src]
impl Default for VestState
[src]
impl<'de> Deserialize<'de> for VestState
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<VestState> for VestState
[src]
impl Serialize for VestState
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for VestState
[src]
Auto Trait Implementations
impl RefUnwindSafe for VestState
impl Send for VestState
impl Sync for VestState
impl Unpin for VestState
impl UnwindSafe for VestState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,