pub struct CpiContextWriteAccounts<'a, T>where
T: AccountInfoTrait + Clone,{
pub fee_payer: &'a T,
pub authority: &'a T,
pub cpi_context: &'a T,
pub cpi_signer: CpiSigner,
}Fields§
§fee_payer: &'a T§cpi_context: &'a T§cpi_signer: CpiSignerImplementations§
Source§impl<T> CpiContextWriteAccounts<'_, T>where
T: AccountInfoTrait + Clone,
impl<T> CpiContextWriteAccounts<'_, T>where
T: AccountInfoTrait + Clone,
pub fn bump(&self) -> u8
pub fn invoking_program(&self) -> [u8; 32]
pub fn to_account_infos(&self) -> [T; 3]
pub fn to_account_info_refs(&self) -> [&T; 3]
Trait Implementations§
Source§impl<'a, T> Clone for CpiContextWriteAccounts<'a, T>where
T: Clone + AccountInfoTrait,
impl<'a, T> Clone for CpiContextWriteAccounts<'a, T>where
T: Clone + AccountInfoTrait,
Source§fn clone(&self) -> CpiContextWriteAccounts<'a, T>
fn clone(&self) -> CpiContextWriteAccounts<'a, T>
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<'a, AI> CpiAccountsTrait<AI> for CpiContextWriteAccounts<'a, AI>where
AI: AccountInfoTrait + Clone,
Build CpiMeta vec from CpiContextWriteAccounts (3-account CPI context write).
impl<'a, AI> CpiAccountsTrait<AI> for CpiContextWriteAccounts<'a, AI>where
AI: AccountInfoTrait + Clone,
Build CpiMeta vec from CpiContextWriteAccounts (3-account CPI context write).
Source§impl<'a, T> Debug for CpiContextWriteAccounts<'a, T>
impl<'a, T> Debug for CpiContextWriteAccounts<'a, T>
Source§impl<'a, T> TryFrom<&CpiAccounts<'a, T>> for CpiContextWriteAccounts<'a, T>where
T: AccountInfoTrait + Clone,
Available on crate feature cpi-context only.
impl<'a, T> TryFrom<&CpiAccounts<'a, T>> for CpiContextWriteAccounts<'a, T>where
T: AccountInfoTrait + Clone,
Available on crate feature
cpi-context only.Source§type Error = LightSdkTypesError
type Error = LightSdkTypesError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &CpiAccounts<'a, T>,
) -> Result<CpiContextWriteAccounts<'a, T>, <CpiContextWriteAccounts<'a, T> as TryFrom<&CpiAccounts<'a, T>>>::Error>
fn try_from( value: &CpiAccounts<'a, T>, ) -> Result<CpiContextWriteAccounts<'a, T>, <CpiContextWriteAccounts<'a, T> as TryFrom<&CpiAccounts<'a, T>>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl<'a, T> Freeze for CpiContextWriteAccounts<'a, T>
impl<'a, T> RefUnwindSafe for CpiContextWriteAccounts<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for CpiContextWriteAccounts<'a, T>where
T: Sync,
impl<'a, T> Sync for CpiContextWriteAccounts<'a, T>where
T: Sync,
impl<'a, T> Unpin for CpiContextWriteAccounts<'a, T>
impl<'a, T> UnwindSafe for CpiContextWriteAccounts<'a, T>where
T: RefUnwindSafe,
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