/// 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
pub fn field_predicate(self, field_name: impl Into<String>) -> Self {
        let 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 _)),
            }),
        };
        self.predicate(predicate)
    }
pub fn field_predicate ( self , field_name : impl Into < String > ) -> Self { let 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 _ ) ) , } ) , } ; self . predicate ( predicate ) }
Create a predicate representing _f=field_name in the horrible gRPC structs
Create a predicate representing _f = field_name in the horrible gRPC structs
self
field_name
impl Into<String>