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§

source

fn name(&self) -> String

Returns the name of the RuleSet.

source

fn owner(&self) -> &Pubkey

Returns the ownwer of the RuleSet.

source

fn lib_version(&self) -> u8

Returns the version of the RuleSet.

source

fn get_rule( &self, operation: String ) -> Result<&dyn Assertable<'a>, ProgramError>

Returns the rule associated with an operation.

Implementors§

source§

impl<'a> RuleSet<'a> for RuleSetV1

source§

impl<'a> RuleSet<'a> for RuleSetV2<'a>