pub struct VirtualSlot {
pub account_index: u8,
pub require_owned: bool,
pub require_writable: bool,
}Expand description
A mapping from virtual slot index to account index.
Fields§
§account_index: u8Index into the instruction’s account array.
require_owned: boolExpected owner (0 = skip owner check, program_id used).
require_writable: boolWhether this slot must be writable.
Implementations§
Source§impl VirtualSlot
impl VirtualSlot
Trait Implementations§
Source§impl Clone for VirtualSlot
impl Clone for VirtualSlot
Source§fn clone(&self) -> VirtualSlot
fn clone(&self) -> VirtualSlot
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 moreimpl Copy for VirtualSlot
Auto Trait Implementations§
impl Freeze for VirtualSlot
impl RefUnwindSafe for VirtualSlot
impl Send for VirtualSlot
impl Sync for VirtualSlot
impl Unpin for VirtualSlot
impl UnsafeUnpin for VirtualSlot
impl UnwindSafe for VirtualSlot
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