pub enum StakeProgramInstruction {
Show 15 variants
Initialize(Initialize),
Authorize(Authorize),
DelegateStake(DelegateStake),
Split(Split),
Withdraw(Withdraw),
Deactivate(Deactivate),
SetLockup(SetLockup),
Merge(Merge),
AuthorizeWithSeed(AuthorizeWithSeed),
InitializeChecked(InitializeChecked),
AuthorizeChecked(AuthorizeChecked),
AuthorizeCheckedWithSeed(AuthorizeCheckedWithSeed),
SetLockupChecked(SetLockupChecked),
GetMinimumDelegation(GetMinimumDelegation),
DeactivateDelinquent(DeactivateDelinquent),
}Variants§
Initialize(Initialize)
Authorize(Authorize)
DelegateStake(DelegateStake)
Split(Split)
Withdraw(Withdraw)
Deactivate(Deactivate)
SetLockup(SetLockup)
Merge(Merge)
AuthorizeWithSeed(AuthorizeWithSeed)
InitializeChecked(InitializeChecked)
AuthorizeChecked(AuthorizeChecked)
AuthorizeCheckedWithSeed(AuthorizeCheckedWithSeed)
SetLockupChecked(SetLockupChecked)
GetMinimumDelegation(GetMinimumDelegation)
DeactivateDelinquent(DeactivateDelinquent)
Implementations§
Source§impl StakeProgramInstruction
impl StakeProgramInstruction
pub fn get_instruction_type(&self) -> StakeProgramInstructionType
Trait Implementations§
Source§impl Clone for StakeProgramInstruction
impl Clone for StakeProgramInstruction
Source§fn clone(&self) -> StakeProgramInstruction
fn clone(&self) -> StakeProgramInstruction
Returns a duplicate 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 StakeProgramInstruction
impl Debug for StakeProgramInstruction
Source§impl<'de> Deserialize<'de> for StakeProgramInstruction
impl<'de> Deserialize<'de> for StakeProgramInstruction
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 Hash for StakeProgramInstruction
impl Hash for StakeProgramInstruction
Source§impl PartialEq for StakeProgramInstruction
impl PartialEq for StakeProgramInstruction
Source§impl Serialize for StakeProgramInstruction
impl Serialize for StakeProgramInstruction
impl Eq for StakeProgramInstruction
impl StructuralPartialEq for StakeProgramInstruction
Auto Trait Implementations§
impl Freeze for StakeProgramInstruction
impl RefUnwindSafe for StakeProgramInstruction
impl Send for StakeProgramInstruction
impl Sync for StakeProgramInstruction
impl Unpin for StakeProgramInstruction
impl UnwindSafe for StakeProgramInstruction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more