pub enum MeteoraPoolsInstruction {
Show 20 variants
Initialize = 0,
Swap = 1,
AddLiquidity = 2,
RemoveLiquidity = 3,
CreateConfig = 4,
CloseConfig = 5,
UpdateCurveInfo = 6,
TransferAdmin = 7,
SetPoolFees = 8,
OverrideCurveParam = 9,
SetNewFeeOwner = 10,
PartnerClaimFees = 11,
WithdrawProtocolFees = 12,
CreateLockEscrow = 13,
Lock = 14,
ClaimFee = 15,
CreatePool = 16,
EnableOrDisablePool = 17,
BootstrapLiquidity = 18,
MigrateFeeAccount = 19,
}
Expand description
Meteora Pools 指令类型枚举
Variants§
Initialize = 0
Swap = 1
AddLiquidity = 2
RemoveLiquidity = 3
CreateConfig = 4
CloseConfig = 5
UpdateCurveInfo = 6
TransferAdmin = 7
SetPoolFees = 8
OverrideCurveParam = 9
SetNewFeeOwner = 10
PartnerClaimFees = 11
WithdrawProtocolFees = 12
CreateLockEscrow = 13
Lock = 14
ClaimFee = 15
CreatePool = 16
EnableOrDisablePool = 17
BootstrapLiquidity = 18
MigrateFeeAccount = 19
Implementations§
Source§impl MeteoraPoolsInstruction
impl MeteoraPoolsInstruction
Sourcepub fn from_discriminator(discriminator: &[u8; 8]) -> Option<Self>
pub fn from_discriminator(discriminator: &[u8; 8]) -> Option<Self>
从 discriminator 转换为指令类型
Trait Implementations§
Source§impl Clone for MeteoraPoolsInstruction
impl Clone for MeteoraPoolsInstruction
Source§fn clone(&self) -> MeteoraPoolsInstruction
fn clone(&self) -> MeteoraPoolsInstruction
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 MeteoraPoolsInstruction
impl Debug for MeteoraPoolsInstruction
Source§impl PartialEq for MeteoraPoolsInstruction
impl PartialEq for MeteoraPoolsInstruction
impl Copy for MeteoraPoolsInstruction
impl Eq for MeteoraPoolsInstruction
impl StructuralPartialEq for MeteoraPoolsInstruction
Auto Trait Implementations§
impl Freeze for MeteoraPoolsInstruction
impl RefUnwindSafe for MeteoraPoolsInstruction
impl Send for MeteoraPoolsInstruction
impl Sync for MeteoraPoolsInstruction
impl Unpin for MeteoraPoolsInstruction
impl UnwindSafe for MeteoraPoolsInstruction
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request