Skip to main content

parse_configured_contract_from_json

Function parse_configured_contract_from_json 

Source
pub fn parse_configured_contract_from_json(
    json: &Value,
) -> Result<ConfiguredContract>
Expand description

Parse a configured IB contract with strict field and enum validation.

ยงErrors

Returns an error if a known field has the wrong JSON type, a numeric field is out of range, or an enum value is unknown.