pub enum Interface {
Show 18 variants
Close,
Burn,
Create(MetadataInput),
Approve(DelegateInput),
Allocate(AllocateInput),
Lock,
Revoke(DelegateInput),
Transfer,
Unlock,
Unverify,
Update(UpdateInput),
Verify,
Write(DataInput),
Group,
Ungroup,
Handover,
Remove(ExtensionType),
Resize(Strategy),
}Variants§
Close
Closes an uninitialized asset (buffer) account.
You can only close the buffer account if it has not been used to create an asset.
Burn
Burns an asset.
Create(MetadataInput)
Creates a new asset.
Approve(DelegateInput)
Approves a delegate to manage an asset.
Allocate(AllocateInput)
Allocates an extension into an uninitialized asset (buffer) account.
Lock
Locks an asset.
Revoke(DelegateInput)
Revokes a delegate.
Transfer
Transfers ownership of the aseet to a new public key.
Unlock
Unlocks an asset.
Unverify
Unverifies a creator.
Update(UpdateInput)
Updates an asset.
Verify
Verifies a creator.
Write(DataInput)
Writes data to an extension.
Group
Adds an asset to a group.
Ungroup
Removes an asset from a group.
Handover
Handover an asset to a new authority.
Remove(ExtensionType)
Removes an extension from an asset.
Resize(Strategy)
Resize an asset account.
Implementations§
Source§impl Interface
impl Interface
Sourcepub fn process_instruction<'a>(
_program_id: &'a Pubkey,
accounts: &'a [AccountInfo<'a>],
instruction_data: &[u8],
) -> ProgramResult
pub fn process_instruction<'a>( _program_id: &'a Pubkey, accounts: &'a [AccountInfo<'a>], instruction_data: &[u8], ) -> ProgramResult
Processes the instruction for the asset program.
Trait Implementations§
Source§impl BorshDeserialize for Interface
impl BorshDeserialize for Interface
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 Interface
impl BorshSerialize for Interface
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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