Skip to main content

resource_limit_for

Function resource_limit_for 

Source
pub fn resource_limit_for(
    tier: &SubscriptionTier,
    resource_type: &ResourceType,
) -> ResourceLimit
Expand description

The cap on one resource type for a tier, or ResourceLimit::Unlimited for the types a tier does not cap individually.

This is the per-type cap only. A tenant is also held to TierLimits::total_resources across every type.