The docs.rs page mentions:
Consider using the Signer type if you would only have this constraint on the account.
What would be some examples where you would want to use the #[account(signer)]
constraint instead of the Signer
account type?
For example, when would you use something like this:
#[account(signer, <other constraints>)]
pub signer: SystemAccount<'info> // what other account types would require signing? maybe PDAs?
vs:
#[account(<other constraints>)]
pub signer: Signer<'info>