Trait mpl_token_auth_rules::types::RuleSet
source · pub trait RuleSet<'a> {
// Required methods
fn name(&self) -> String;
fn owner(&self) -> &Pubkey;
fn lib_version(&self) -> u8;
fn get_rule(
&self,
operation: String
) -> Result<&dyn Assertable<'a>, ProgramError>;
}Required Methods§
sourcefn lib_version(&self) -> u8
fn lib_version(&self) -> u8
Returns the version of the RuleSet.
sourcefn get_rule(
&self,
operation: String
) -> Result<&dyn Assertable<'a>, ProgramError>
fn get_rule( &self, operation: String ) -> Result<&dyn Assertable<'a>, ProgramError>
Returns the rule associated with an operation.