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§
sourcefn check_add_membership(idty_id: IdtyId) -> Result<(), DispatchError>
fn check_add_membership(idty_id: IdtyId) -> Result<(), DispatchError>
Checks if adding a membership is allowed.
sourcefn check_renew_membership(idty_id: IdtyId) -> Result<(), DispatchError>
fn check_renew_membership(idty_id: IdtyId) -> Result<(), DispatchError>
Checks if renewing a membership is allowed.
Object Safety§
This trait is not object safe.