pub struct TemplateInstruction {
pub program_id: Address,
pub accounts: Vec<TemplateAccount>,
pub data: Vec<u8>,
}Expand description
The template’s single instruction, sent verbatim except the role slots’ addresses and the amount bytes.
Fields§
§program_id: Address§accounts: Vec<TemplateAccount>Metas in program order. Flags are never touched by the server; duplicate addresses are legal; a role slot’s address is a placeholder (by convention the zero address).
data: Vec<u8>Trait Implementations§
Source§impl Clone for TemplateInstruction
impl Clone for TemplateInstruction
Source§impl Debug for TemplateInstruction
impl Debug for TemplateInstruction
impl Eq for TemplateInstruction
Source§impl PartialEq for TemplateInstruction
impl PartialEq for TemplateInstruction
impl StructuralPartialEq for TemplateInstruction
Auto Trait Implementations§
impl Freeze for TemplateInstruction
impl RefUnwindSafe for TemplateInstruction
impl Send for TemplateInstruction
impl Sync for TemplateInstruction
impl Unpin for TemplateInstruction
impl UnsafeUnpin for TemplateInstruction
impl UnwindSafe for TemplateInstruction
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