fn make_field_predicate(field_name: impl Into<String>) -> Predicate {
    Predicate {
        root: Some(Node {
            node_type: NodeType::ComparisonExpression as i32,
            children: vec![
                Node {
                    node_type: NodeType::TagRef as i32,
                    children: vec![],
                    value: Some(Value::TagRefValue([255].to_vec())),
                },
                Node {
                    node_type: NodeType::Literal as i32,
                    children: vec![],
                    value: Some(Value::StringValue(field_name.into())),
                },
            ],
            value: Some(Value::Comparison(Comparison::Equal as _)),
        }),
    }
}
/// Create a predicate representing _f=field_name in the horrible gRPC structs
Create a predicate representing _f=field_name in the horrible gRPC structs
Create a predicate representing _f = field_name in the horrible gRPC structs
fn make_field_predicate(field_name: impl Into<String>) -> Predicate {
    Predicate {
        root: Some(Node {
            node_type: NodeType::ComparisonExpression as i32,
            children: vec![
                Node {
                    node_type: NodeType::TagRef as i32,
                    children: vec![],
                    value: Some(Value::TagRefValue([255].to_vec())),
                },
                Node {
                    node_type: NodeType::Literal as i32,
                    children: vec![],
                    value: Some(Value::StringValue(field_name.into())),
                },
            ],
            value: Some(Value::Comparison(Comparison::Equal as _)),
        }),
    }
}
fn make_field_predicate ( field_name : impl Into < String > ) -> Predicate { Predicate { root : Some ( Node { node_type : NodeType :: ComparisonExpression as i32 , children : vec ! [ Node { node_type NodeType TagRef as i32 children vec [ ] value Some ( Value TagRefValue ( [ 255 ] to_vec ( ) ) ) } Node { node_type NodeType Literal as i32 children vec [ ] value Some ( Value StringValue ( field_name into ( ) ) ) } ] , value : Some ( Value :: Comparison ( Comparison :: Equal as _ ) ) , } ) , } }
Create a predicate representing _f=field_name in the horrible gRPC structs
Create a predicate representing _f = field_name in the horrible gRPC structs
field_name
impl Into<String>
field_name
impl Into<String>