Function has_role

Source
pub fn has_role<'a, 'b, 'c, 'info>(
    ctx: CpiContext<'a, 'b, 'c, 'info, HasRole<'info>>,
    authority: Pubkey,
    role: String,
) -> Result<Return<bool>>