pub struct LockConfig {
pub discriminator: [u8; 8],
pub position: Pubkey,
pub position_owner: Pubkey,
pub whirlpool: Pubkey,
pub locked_timestamp: u64,
pub lock_type: LockTypeLabel,
}Fields§
§discriminator: [u8; 8]§position: Pubkey§position_owner: Pubkey§whirlpool: Pubkey§locked_timestamp: u64§lock_type: LockTypeLabelImplementations§
Trait Implementations§
Source§impl BorshDeserialize for LockConfig
impl BorshDeserialize for LockConfig
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for LockConfig
impl BorshSerialize for LockConfig
Source§impl Clone for LockConfig
impl Clone for LockConfig
Source§fn clone(&self) -> LockConfig
fn clone(&self) -> LockConfig
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 LockConfig
impl Debug for LockConfig
impl Eq for LockConfig
Source§impl PartialEq for LockConfig
impl PartialEq for LockConfig
impl StructuralPartialEq for LockConfig
Source§impl<'a> TryFrom<&AccountInfo<'a>> for LockConfig
impl<'a> TryFrom<&AccountInfo<'a>> for LockConfig
Auto Trait Implementations§
impl Freeze for LockConfig
impl RefUnwindSafe for LockConfig
impl Send for LockConfig
impl Sync for LockConfig
impl Unpin for LockConfig
impl UnsafeUnpin for LockConfig
impl UnwindSafe for LockConfig
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