Skip to main content

gate

Function gate 

Source
pub fn gate(tier: &Tier, required: &Tier, feature: &str) -> Result<(), String>
Expand description

Check whether the current tier allows an action and return an upgrade prompt if not.