fn parse_structured(pair: Pair<'_, Rule>, query: &mut Query) {
    let mut inner = pair.into_inner();
    // parse the flattened key and value.
    let attr = inner.next().unwrap().as_str();
    let value = inner.next().unwrap().as_str();
    let value = &value[1..value.len() - 1];
    let selection = Selection {
        structured: true,
        attr: Some(String::from(attr)),
        value: value.to_string(),
    };
    query.selection = Some(selection);
}
/// parse_structured is used to parse the structured queries.
parse_structured is used to parse the structured queries.
parse_structured is used to parse the structured queries .
fn parse_structured(pair: Pair<'_, Rule>, query: &mut Query) {
    let mut inner = pair.into_inner();
    // parse the flattened key and value.
    let attr = inner.next().unwrap().as_str();
    let value = inner.next().unwrap().as_str();
    let value = &value[1..value.len() - 1];
    let selection = Selection {
        structured: true,
        attr: Some(String::from(attr)),
        value: value.to_string(),
    };
    query.selection = Some(selection);
}
fn parse_structured ( pair : Pair < ' _ , Rule > , query : & mut Query ) { let mut inner = pair . into_inner ( ) ; // parse the flattened key and value. let attr = inner . next ( ) . unwrap ( ) . as_str ( ) ; let value = inner . next ( ) . unwrap ( ) . as_str ( ) ; let value = & value [ 1 .. value . len ( ) - 1 ] ; let selection = Selection { structured : true , attr : Some ( String :: from ( attr ) ) , value : value . to_string ( ) , } ; query . selection = Some ( selection ) ; }
parse_structured is used to parse the structured queries.
parse_structured is used to parse the structured queries .
pair
Pair<'_, Rule>
query
&mut Query