pub struct CpiAccountsConfig {
pub cpi_context: bool,
pub sol_compression_recipient: bool,
pub sol_pool_pda: bool,
pub cpi_signer: CpiSigner,
}Expand description
Contains program id, derived cpi signer, and bump,
Fields§
§cpi_context: bool§sol_compression_recipient: bool§sol_pool_pda: bool§cpi_signer: CpiSignerImplementations§
Source§impl CpiAccountsConfig
impl CpiAccountsConfig
pub const fn new(cpi_signer: CpiSigner) -> CpiAccountsConfig
pub const fn new_with_cpi_context(cpi_signer: CpiSigner) -> CpiAccountsConfig
pub fn cpi_signer(&self) -> [u8; 32]
pub fn bump(&self) -> u8
Trait Implementations§
Source§impl Clone for CpiAccountsConfig
impl Clone for CpiAccountsConfig
Source§fn clone(&self) -> CpiAccountsConfig
fn clone(&self) -> CpiAccountsConfig
Returns a duplicate 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 moreSource§impl Debug for CpiAccountsConfig
impl Debug for CpiAccountsConfig
Source§impl PartialEq for CpiAccountsConfig
impl PartialEq for CpiAccountsConfig
impl Copy for CpiAccountsConfig
impl StructuralPartialEq for CpiAccountsConfig
Auto Trait Implementations§
impl Freeze for CpiAccountsConfig
impl RefUnwindSafe for CpiAccountsConfig
impl Send for CpiAccountsConfig
impl Sync for CpiAccountsConfig
impl Unpin for CpiAccountsConfig
impl UnwindSafe for CpiAccountsConfig
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