pub struct SignerAccount<'a> { /* private fields */ }Expand description
A verified signer account.
Construction validates is_signer. After construction, the signer
property is proven by the type system.
Implementations§
Source§impl<'a> SignerAccount<'a>
impl<'a> SignerAccount<'a>
Sourcepub fn from_account(
account: &'a AccountView,
) -> Result<SignerAccount<'a>, ProgramError>
pub fn from_account( account: &'a AccountView, ) -> Result<SignerAccount<'a>, ProgramError>
Construct from an AccountView, validating the signer flag.
Sourcepub fn to_account_view(&self) -> &'a AccountView
pub fn to_account_view(&self) -> &'a AccountView
The underlying AccountView.
Sourcepub fn is_writable(&self) -> bool
pub fn is_writable(&self) -> bool
Whether the account is also writable.
Trait Implementations§
Source§impl<'a> Clone for SignerAccount<'a>
impl<'a> Clone for SignerAccount<'a>
Source§fn clone(&self) -> SignerAccount<'a>
fn clone(&self) -> SignerAccount<'a>
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 moreSource§impl<'a> ValidateAccount for SignerAccount<'a>
impl<'a> ValidateAccount for SignerAccount<'a>
impl<'a> Copy for SignerAccount<'a>
Auto Trait Implementations§
impl<'a> Freeze for SignerAccount<'a>
impl<'a> RefUnwindSafe for SignerAccount<'a>
impl<'a> Send for SignerAccount<'a>
impl<'a> Sync for SignerAccount<'a>
impl<'a> Unpin for SignerAccount<'a>
impl<'a> UnsafeUnpin for SignerAccount<'a>
impl<'a> UnwindSafe for SignerAccount<'a>
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