pub fn parse_vendor_definition(
toml_text: &str,
) -> Result<VendorDefinition, VendorError>Expand description
Parse a raw TOML payload into a VendorDefinition.
The TOML is expected to declare the id field as the lower-case
VendorId label (e.g. "datadome"). The loader maps that label
into a VendorId discriminant and rejects unknown ids with
VendorError::UnknownVendorId.
ยงErrors
Returns VendorError when the TOML fails to parse, the
declared id is not part of the supported taxonomy, or the
resulting VendorDefinition fails validate.