pub trait CheckMembershipOpAllowed<IdtyId> {
    // Required methods
    fn check_add_membership(idty_id: IdtyId) -> Result<(), DispatchError>;
    fn check_renew_membership(idty_id: IdtyId) -> Result<(), DispatchError>;
}
Expand description

A trait defining operations for checking if membership-related operations are allowed.

Required Methods§

source

fn check_add_membership(idty_id: IdtyId) -> Result<(), DispatchError>

Checks if adding a membership is allowed.

source

fn check_renew_membership(idty_id: IdtyId) -> Result<(), DispatchError>

Checks if renewing a membership is allowed.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<IdtyId> CheckMembershipOpAllowed<IdtyId> for ()

source§

fn check_add_membership(_: IdtyId) -> Result<(), DispatchError>

source§

fn check_renew_membership(_: IdtyId) -> Result<(), DispatchError>

Implementors§