pub struct CpiInputs {
pub proof: ValidityProof,
pub account_infos: Option<Vec<CompressedAccountInfo>>,
pub read_only_accounts: Option<Vec<ReadOnlyCompressedAccount>>,
pub new_addresses: Option<Vec<NewAddressParamsPacked>>,
pub read_only_address: Option<Vec<ReadOnlyAddress>>,
pub compress_or_decompress_lamports: Option<u64>,
pub is_compress: bool,
pub cpi_context: Option<CompressedCpiContext>,
}Fields§
§proof: ValidityProof§account_infos: Option<Vec<CompressedAccountInfo>>§read_only_accounts: Option<Vec<ReadOnlyCompressedAccount>>§new_addresses: Option<Vec<NewAddressParamsPacked>>§read_only_address: Option<Vec<ReadOnlyAddress>>§compress_or_decompress_lamports: Option<u64>§is_compress: bool§cpi_context: Option<CompressedCpiContext>Implementations§
Source§impl CpiInputs
impl CpiInputs
pub fn new( proof: ValidityProof, account_infos: Vec<CompressedAccountInfo>, ) -> Self
pub fn new_with_address( proof: ValidityProof, account_infos: Vec<CompressedAccountInfo>, new_addresses: Vec<NewAddressParamsPacked>, ) -> Self
pub fn invoke_light_system_program( self, cpi_accounts: CpiAccounts<'_, '_>, ) -> Result<()>
Trait Implementations§
impl StructuralPartialEq for CpiInputs
Auto Trait Implementations§
impl Freeze for CpiInputs
impl RefUnwindSafe for CpiInputs
impl Send for CpiInputs
impl Sync for CpiInputs
impl Unpin for CpiInputs
impl UnwindSafe for CpiInputs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more