pub struct LockupInfo {
pub amount: u128,
pub unlock_at: Timestamp,
pub vesting: Option<VestingSchedule>,
}Expand description
Lockup information
Fields§
§amount: u128Amount locked
unlock_at: TimestampUnlock timestamp
vesting: Option<VestingSchedule>Vesting schedule (if applicable)
Trait Implementations§
Source§impl Clone for LockupInfo
impl Clone for LockupInfo
Source§fn clone(&self) -> LockupInfo
fn clone(&self) -> LockupInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LockupInfo
impl Debug for LockupInfo
Source§impl<'de> Deserialize<'de> for LockupInfo
impl<'de> Deserialize<'de> for LockupInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LockupInfo
impl PartialEq for LockupInfo
Source§fn eq(&self, other: &LockupInfo) -> bool
fn eq(&self, other: &LockupInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LockupInfo
impl Serialize for LockupInfo
impl Eq for LockupInfo
impl StructuralPartialEq for LockupInfo
Auto Trait Implementations§
impl Freeze for LockupInfo
impl RefUnwindSafe for LockupInfo
impl Send for LockupInfo
impl Sync for LockupInfo
impl Unpin for LockupInfo
impl UnsafeUnpin for LockupInfo
impl UnwindSafe for LockupInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more