Struct light_sdk::compressed_account::LightMutAccount
source · pub struct LightMutAccount<T>{ /* private fields */ }Implementations§
source§impl<T> LightMutAccount<T>
impl<T> LightMutAccount<T>
pub fn try_from_slice( v: &[u8], merkle_context: &PackedMerkleContext, merkle_tree_root_index: u16, address_merkle_context: &PackedAddressMerkleContext, ) -> Result<Self>
pub fn set_address_seed(&mut self, address_seed: [u8; 32])
pub fn input_compressed_account( &self, program_id: &Pubkey, remaining_accounts: &[AccountInfo<'_>], ) -> Result<PackedCompressedAccountWithMerkleContext>
pub fn output_compressed_account( &self, program_id: &Pubkey, remaining_accounts: &[AccountInfo<'_>], ) -> Result<OutputCompressedAccountWithPackedContext>
Trait Implementations§
source§impl<T> Deref for LightMutAccount<T>
impl<T> Deref for LightMutAccount<T>
source§impl<T> DerefMut for LightMutAccount<T>
impl<T> DerefMut for LightMutAccount<T>
Auto Trait Implementations§
impl<T> Freeze for LightMutAccount<T>where
T: Freeze,
impl<T> RefUnwindSafe for LightMutAccount<T>where
T: RefUnwindSafe,
impl<T> Send for LightMutAccount<T>where
T: Send,
impl<T> Sync for LightMutAccount<T>where
T: Sync,
impl<T> Unpin for LightMutAccount<T>where
T: Unpin,
impl<T> UnwindSafe for LightMutAccount<T>where
T: UnwindSafe,
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> 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 moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<Container> Signer for Container
impl<Container> Signer for Container
source§fn pubkey(&self) -> Pubkey
fn pubkey(&self) -> Pubkey
Infallibly gets the implementor’s public key. Returns the all-zeros
Pubkey if the implementor has none.source§fn try_pubkey(&self) -> Result<Pubkey, SignerError>
fn try_pubkey(&self) -> Result<Pubkey, SignerError>
Fallibly gets the implementor’s public key
source§fn sign_message(&self, message: &[u8]) -> Signature
fn sign_message(&self, message: &[u8]) -> Signature
Infallibly produces an Ed25519 signature over the provided
message
bytes. Returns the all-zeros Signature if signing is not possible.source§fn try_sign_message(&self, message: &[u8]) -> Result<Signature, SignerError>
fn try_sign_message(&self, message: &[u8]) -> Result<Signature, SignerError>
Fallibly produces an Ed25519 signature over the provided
message bytes.source§fn is_interactive(&self) -> bool
fn is_interactive(&self) -> bool
Whether the implementation requires user interaction to sign