pub fn parse_contract_str(yaml: &str) -> Result<Contract, ContractError>
Parse a YAML contract from a string.