Enum rooster::instruction::RoosterCommand
source · pub enum RoosterCommand {
Init,
Withdraw(WithdrawArgs),
Delegate(DelegateArgs),
Lock(LockArgs),
Unlock(UnlockArgs),
ProgrammableLock(LockArgs),
ProgrammableUnlock(UnlockArgs),
DelegateTransfer(DelegateTransferArgs),
}Variants§
Init
Initialize a new rooster
Withdraw(WithdrawArgs)
Withdraw the token from the rooster by CPIing into Token Metadata ‘Transfer’
Delegate(DelegateArgs)
Create delegate via Token Metadata CPI
Lock(LockArgs)
Locks a (non-programmable) token inplace via Token Metadata CPI
Unlock(UnlockArgs)
Unlocks a (non-programmable) token inplace via Token Metadata CPI
ProgrammableLock(LockArgs)
Locks a (non-programmable) token inplace via Token Metadata CPI
ProgrammableUnlock(UnlockArgs)
Unlocks a (non-programmable) token inplace via Token Metadata CPI
DelegateTransfer(DelegateTransferArgs)
Delegate transfer
Trait Implementations§
source§impl BorshDeserialize for RoosterCommand
impl BorshDeserialize for RoosterCommand
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 RoosterCommand
impl BorshSerialize for RoosterCommand
source§impl Clone for RoosterCommand
impl Clone for RoosterCommand
source§fn clone(&self) -> RoosterCommand
fn clone(&self) -> RoosterCommand
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 RoosterCommand
impl Debug for RoosterCommand
Auto Trait Implementations§
impl RefUnwindSafe for RoosterCommand
impl Send for RoosterCommand
impl Sync for RoosterCommand
impl Unpin for RoosterCommand
impl UnwindSafe for RoosterCommand
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