Skip to main content

Module limits

Module limits 

Source

Structs§

ResourceLimits
Limits to prevent abuse and enable predictable resource usage

Constants§

MAX_FACT_NAME_LENGTH
MAX_NUMBER_DIGITS
Maximum significant digits in a number string. rust_decimal supports at most 28; more can panic or overflow in parse or arithmetic.
MAX_RULE_NAME_LENGTH
MAX_SPEC_NAME_LENGTH
MAX_TYPE_NAME_LENGTH

Functions§

check_max_length
Validate that a name does not exceed the given character limit. kind is a human-readable noun like “spec”, “fact”, “rule”, or “type”.