pub trait CpiAuthentication<'info>:
Bumps
+ Sized
+ WithStore<'info> {
// Required methods
fn authority(&self) -> AccountInfo<'info>;
fn on_error(&self) -> Result<()>;
// Provided method
fn check_role_ctx(&self) -> CpiContext<'_, '_, '_, 'info, CheckRole<'info>> { ... }
}
Expand description
Accounts that can be used for authentication.
Required Methods§
Provided Methods§
Sourcefn check_role_ctx(&self) -> CpiContext<'_, '_, '_, 'info, CheckRole<'info>>
fn check_role_ctx(&self) -> CpiContext<'_, '_, '_, 'info, CheckRole<'info>>
Get the cpi context for checking role or admin permission.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.