fn apply_static_custom_validation_to_custom_value(
    custom_validation: &ScryptoCustomTypeValidation,
    custom_value: &ScryptoCustomValue
) -> Result<(), PayloadValidationError<ScryptoCustomExtension>>