fn check_property_value_used(
    property_name: &PropertyName,
    property_value: &str,
    property_values: &Option<Vec<PropertyValueSpec>>,
    product_version: &Version,
) -> ValidationResult<bool> {
    if let Some(values) = property_values {
        let val = util::get_property_value_for_version(property_name, values, product_version)?;
        if val.value == property_value {
            return Ok(true);
        }
    }

    Ok(false)
}
/// Check if the final used value corresponds to e.g. recommended or default values
///
/// # Arguments
///
/// * `property_name` - name of the property
/// * `property_value` - the final value used
/// * `property_values` - possible property names e.g. default or recommended values
/// * `product_version` - the provided product version
///
Check if the final used value corresponds to e.g. recommended or default values
Check if the final used value corresponds to e . g . recommended or default values
fn check_property_value_used(
    property_name: &PropertyName,
    property_value: &str,
    property_values: &Option<Vec<PropertyValueSpec>>,
    product_version: &Version,
) -> ValidationResult<bool> {
    if let Some(values) = property_values {
        let val = util::get_property_value_for_version(property_name, values, product_version)?;
        if val.value == property_value {
            return Ok(true);
        }
    }
    Ok(false)
}
fn check_property_value_used ( property_name : & PropertyName , property_value : & str , property_values : & Option < Vec < PropertyValueSpec > > , product_version : & Version , ) -> ValidationResult < bool > { if let Some ( values ) = property_values { let val = util :: get_property_value_for_version ( property_name , values , product_version ) ? ; if val . value == property_value { return Ok ( true ) ; } } Ok ( false ) }
Check if the final used value corresponds to e.g.
Check if the final used value corresponds to e . g .
property_name
&PropertyName
property_value
&str
property_values
&Option<Vec<PropertyValueSpec>>
product_version
&Version