UsesLimit returns true if the feature uses a limit, and therefore should not be included in any feature sets (as they are not boolean features).
()
| 296 | // UsesLimit returns true if the feature uses a limit, and therefore should not |
| 297 | // be included in any feature sets (as they are not boolean features). |
| 298 | func (n FeatureName) UsesLimit() bool { |
| 299 | return map[FeatureName]bool{ |
| 300 | FeatureUserLimit: true, |
| 301 | FeatureManagedAgentLimit: true, |
| 302 | FeatureAIGovernanceUserLimit: true, |
| 303 | }[n] |
| 304 | } |
| 305 | |
| 306 | // UsesUsagePeriod returns true if the feature uses period-based usage limits. |
| 307 | func (n FeatureName) UsesUsagePeriod() bool { |
no outgoing calls