pub struct AccountProof<'a, P = Unchecked> { /* private fields */ }Implementations§
Source§impl<'a> AccountProof<'a>
impl<'a> AccountProof<'a>
pub const fn new(account: &'a AccountView) -> AccountProof<'a>
Source§impl<'a, P> AccountProof<'a, P>
impl<'a, P> AccountProof<'a, P>
pub const fn account(&self) -> &'a AccountView
pub fn check_owner( self, expected: &Address, ) -> Result<AccountProof<'a, (P, OwnerChecked)>, ProgramError>
pub fn check_layout<T>(
self,
) -> Result<AccountProof<'a, (P, LayoutChecked<T>)>, ProgramError>where
T: LayoutContract,
pub fn check_signer( self, ) -> Result<AccountProof<'a, (P, SignerChecked)>, ProgramError>
pub fn check_writable( self, ) -> Result<AccountProof<'a, (P, WritableChecked)>, ProgramError>
pub fn check_executable( self, ) -> Result<AccountProof<'a, (P, ExecutableChecked)>, ProgramError>
pub const fn assume_token_extensions_checked( self, ) -> AccountProof<'a, (P, TokenExtensionsChecked)>
Trait Implementations§
Source§impl<'a, P> Clone for AccountProof<'a, P>where
P: Clone,
impl<'a, P> Clone for AccountProof<'a, P>where
P: Clone,
Source§fn clone(&self) -> AccountProof<'a, P>
fn clone(&self) -> AccountProof<'a, P>
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<'a, P> Copy for AccountProof<'a, P>where
P: Copy,
Auto Trait Implementations§
impl<'a, P> Freeze for AccountProof<'a, P>
impl<'a, P> RefUnwindSafe for AccountProof<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for AccountProof<'a, P>where
P: Send,
impl<'a, P> Sync for AccountProof<'a, P>where
P: Sync,
impl<'a, P> Unpin for AccountProof<'a, P>where
P: Unpin,
impl<'a, P> UnsafeUnpin for AccountProof<'a, P>
impl<'a, P> UnwindSafe for AccountProof<'a, P>where
P: 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