pub enum GraduationMethod {
None {
padding: [u8; 64],
},
Whirlpool {
tick_spacing: u16,
lp_authority: Pubkey,
padding: [u8; 30],
},
Manual {
destination: Pubkey,
padding: [u8; 32],
},
}Variants§
Trait Implementations§
Source§impl BorshDeserialize for GraduationMethodwhere
[u8; 64]: BorshDeserialize,
u16: BorshDeserialize,
Pubkey: BorshDeserialize,
[u8; 30]: BorshDeserialize,
[u8; 32]: BorshDeserialize,
impl BorshDeserialize for GraduationMethodwhere
[u8; 64]: BorshDeserialize,
u16: BorshDeserialize,
Pubkey: BorshDeserialize,
[u8; 30]: BorshDeserialize,
[u8; 32]: BorshDeserialize,
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 GraduationMethodwhere
[u8; 64]: BorshSerialize,
u16: BorshSerialize,
Pubkey: BorshSerialize,
[u8; 30]: BorshSerialize,
[u8; 32]: BorshSerialize,
impl BorshSerialize for GraduationMethodwhere
[u8; 64]: BorshSerialize,
u16: BorshSerialize,
Pubkey: BorshSerialize,
[u8; 30]: BorshSerialize,
[u8; 32]: BorshSerialize,
Source§impl Clone for GraduationMethod
impl Clone for GraduationMethod
Source§fn clone(&self) -> GraduationMethod
fn clone(&self) -> GraduationMethod
Returns a copy of the value. Read more
1.0.0 · 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 GraduationMethod
impl Debug for GraduationMethod
Source§impl EnumExt for GraduationMethodwhere
[u8; 64]: BorshDeserialize,
u16: BorshDeserialize,
Pubkey: BorshDeserialize,
[u8; 30]: BorshDeserialize,
[u8; 32]: BorshDeserialize,
impl EnumExt for GraduationMethodwhere
[u8; 64]: BorshDeserialize,
u16: BorshDeserialize,
Pubkey: BorshDeserialize,
[u8; 30]: BorshDeserialize,
[u8; 32]: BorshDeserialize,
Source§impl PartialEq for GraduationMethod
impl PartialEq for GraduationMethod
impl Eq for GraduationMethod
impl StructuralPartialEq for GraduationMethod
Auto Trait Implementations§
impl Freeze for GraduationMethod
impl RefUnwindSafe for GraduationMethod
impl Send for GraduationMethod
impl Sync for GraduationMethod
impl Unpin for GraduationMethod
impl UnwindSafe for GraduationMethod
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