pub struct Signer<I> { /* private fields */ }Expand description
Signer wrapper – validates that the account is a signer.
Wraps any inner account type that provides view().
Implementations§
Trait Implementations§
Source§impl<'a, I: FromAccount<'a> + HasView<'a>> FromAccount<'a> for Signer<I>
impl<'a, I: FromAccount<'a> + HasView<'a>> FromAccount<'a> for Signer<I>
Source§fn from_account(
account: &'a AccountView,
program_id: &Address,
) -> Result<Self, ProgramError>
fn from_account( account: &'a AccountView, program_id: &Address, ) -> Result<Self, ProgramError>
Construct this type from an account, performing all required validation.
Auto Trait Implementations§
impl<I> Freeze for Signer<I>where
I: Freeze,
impl<I> RefUnwindSafe for Signer<I>where
I: RefUnwindSafe,
impl<I> Send for Signer<I>where
I: Send,
impl<I> Sync for Signer<I>where
I: Sync,
impl<I> Unpin for Signer<I>where
I: Unpin,
impl<I> UnsafeUnpin for Signer<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for Signer<I>where
I: 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