pub enum InstructionAccountInfo<'a, 'b> {
Readonly(&'b AccountInfo<'a>),
ReadonlySigner(&'b AccountInfo<'a>),
Writable(&'b AccountInfo<'a>),
WritableSigner(&'b AccountInfo<'a>),
}
Variants§
Readonly(&'b AccountInfo<'a>)
ReadonlySigner(&'b AccountInfo<'a>)
Writable(&'b AccountInfo<'a>)
WritableSigner(&'b AccountInfo<'a>)
Implementations§
source§impl<'a, 'b> InstructionAccountInfo<'a, 'b>
impl<'a, 'b> InstructionAccountInfo<'a, 'b>
pub fn to_account_meta(&self) -> AccountMeta
pub fn account_info(&self) -> &'b AccountInfo<'a>
Trait Implementations§
source§impl<'a, 'b> Clone for InstructionAccountInfo<'a, 'b>
impl<'a, 'b> Clone for InstructionAccountInfo<'a, 'b>
source§fn clone(&self) -> InstructionAccountInfo<'a, 'b>
fn clone(&self) -> InstructionAccountInfo<'a, 'b>
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 moreimpl<'a, 'b> Copy for InstructionAccountInfo<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for InstructionAccountInfo<'a, 'b>
impl<'a, 'b> !Send for InstructionAccountInfo<'a, 'b>
impl<'a, 'b> !Sync for InstructionAccountInfo<'a, 'b>
impl<'a, 'b> Unpin for InstructionAccountInfo<'a, 'b>
impl<'a, 'b> !UnwindSafe for InstructionAccountInfo<'a, 'b>
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