#[repr(u8)]pub enum InterestBearingMintInstruction {
Initialize = 0,
UpdateRate = 1,
}Expand description
Interest-bearing mint extension instructions
Variants§
Initialize = 0
Initialize a new mint with interest accrual.
Fails if the mint has already been initialized, so must be called before
InitializeMint.
The mint must have exactly enough space allocated for the base mint (82 bytes), plus 83 bytes of padding, 1 byte reserved for the account type, then space required for this extension, plus any others.
Accounts expected by this instruction:
[writable]The mint to initialize.
Data expected by this instruction:
crate::extension::interest_bearing_mint::instruction::InitializeInstructionData
UpdateRate = 1
Update the interest rate. Only supported for mints that include the
InterestBearingConfig extension.
Accounts expected by this instruction:
- Single authority
[writable]The mint.[signer]The mint rate authority.
- Multisignature authority
[writable]The mint.[]The mint’s multisignature rate authority...2+M[signer]M signer accounts.
Data expected by this instruction:
crate::extension::interest_bearing_mint::BasisPoints
Trait Implementations§
Source§impl Clone for InterestBearingMintInstruction
impl Clone for InterestBearingMintInstruction
Source§fn clone(&self) -> InterestBearingMintInstruction
fn clone(&self) -> InterestBearingMintInstruction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl From<InterestBearingMintInstruction> for u8
impl From<InterestBearingMintInstruction> for u8
Source§fn from(enum_value: InterestBearingMintInstruction) -> Self
fn from(enum_value: InterestBearingMintInstruction) -> Self
Source§impl PartialEq for InterestBearingMintInstruction
impl PartialEq for InterestBearingMintInstruction
Source§fn eq(&self, other: &InterestBearingMintInstruction) -> bool
fn eq(&self, other: &InterestBearingMintInstruction) -> bool
self and other values to be equal, and is used by ==.Source§impl TryFrom<u8> for InterestBearingMintInstruction
impl TryFrom<u8> for InterestBearingMintInstruction
Source§type Error = TryFromPrimitiveError<InterestBearingMintInstruction>
type Error = TryFromPrimitiveError<InterestBearingMintInstruction>
Source§impl TryFromPrimitive for InterestBearingMintInstruction
impl TryFromPrimitive for InterestBearingMintInstruction
const NAME: &'static str = "InterestBearingMintInstruction"
type Primitive = u8
type Error = TryFromPrimitiveError<InterestBearingMintInstruction>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for InterestBearingMintInstruction
impl StructuralPartialEq for InterestBearingMintInstruction
Auto Trait Implementations§
impl Freeze for InterestBearingMintInstruction
impl RefUnwindSafe for InterestBearingMintInstruction
impl Send for InterestBearingMintInstruction
impl Sync for InterestBearingMintInstruction
impl Unpin for InterestBearingMintInstruction
impl UnwindSafe for InterestBearingMintInstruction
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
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>
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>
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