pub struct InstructionDescriptor {
pub name: &'static str,
pub tag: u8,
pub args: &'static [ArgDescriptor],
pub accounts: &'static [AccountEntry],
pub capabilities: &'static [&'static str],
pub policy_pack: &'static str,
pub receipt_expected: bool,
}Expand description
An instruction descriptor in a program manifest.
Fields§
§name: &'static strInstruction name.
tag: u8Discriminator tag.
args: &'static [ArgDescriptor]Arguments.
accounts: &'static [AccountEntry]Accounts.
capabilities: &'static [&'static str]Capability names.
policy_pack: &'static strPolicy pack name (empty if custom).
receipt_expected: boolWhether this instruction emits a receipt.
Trait Implementations§
Source§impl Clone for InstructionDescriptor
impl Clone for InstructionDescriptor
Source§fn clone(&self) -> InstructionDescriptor
fn clone(&self) -> InstructionDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InstructionDescriptor
impl Debug for InstructionDescriptor
impl Copy for InstructionDescriptor
Auto Trait Implementations§
impl Freeze for InstructionDescriptor
impl RefUnwindSafe for InstructionDescriptor
impl Send for InstructionDescriptor
impl Sync for InstructionDescriptor
impl Unpin for InstructionDescriptor
impl UnsafeUnpin for InstructionDescriptor
impl UnwindSafe for InstructionDescriptor
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