Struct vestinglib::Vesting
source · [−]pub struct Vesting {
pub terms: VestingTerms,
pub state: VestingState,
}Expand description
A Vesting struct that can be used to compute releasable amount
Fields
terms: VestingTermsstate: VestingStateImplementations
sourceimpl Vesting
impl Vesting
sourcepub fn get_releasable_amount(
&self,
params: &GetReleasableAmountParams
) -> Result<u64, VestingError>
pub fn get_releasable_amount(
&self,
params: &GetReleasableAmountParams
) -> Result<u64, VestingError>
Returns the amount releasable by the owner of the grant (vested amount - already released)
Arguments
params- A parameters struct needed to
Trait Implementations
sourceimpl CanInitialize for Vesting
impl CanInitialize for Vesting
fn from_init_params(params: &VestingInitParams) -> Result<Self, VestingError>where
Self: Sized,
Auto Trait Implementations
impl RefUnwindSafe for Vesting
impl Send for Vesting
impl Sync for Vesting
impl Unpin for Vesting
impl UnwindSafe for Vesting
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more