MemoryBudget::ScenarioMemoryContract
Inherits JSON::Serializable::Strict < JSON::Serializable < Struct < Value < Object
Defines a versioned, exact roster of required memory scenarios.
Constructors
new(pull : JSON::PullParser)
Sourcenew(list_of_policies : Array(ScenarioMemoryPolicy) = [] of ScenarioMemoryPolicy, list_of_required_scenarios : Array(String) = [] of String, schema_version : Int32 = 2)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
list_of_policies
Sourcelist_of_required_scenarios
SourceReturns a named policy after the complete contract has been validated.
schema_version
Source