File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
rust/cubeorchestrator/src Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ pub enum FilterOperator {
7171pub struct QueryFilter {
7272 pub member : String ,
7373 pub operator : FilterOperator ,
74+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
7475 pub values : Option < Vec < String > > ,
7576}
7677
@@ -97,6 +98,7 @@ pub type JsFunction = String;
9798#[ serde( rename_all = "camelCase" ) ]
9899pub struct MemberExpression {
99100 // Made as Option and JsValueDeserializer set's it to None.
101+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
100102 pub expression : Option < JsFunction > ,
101103 pub cube_name : String ,
102104 pub name : String ,
@@ -126,8 +128,11 @@ pub struct ParsedMemberExpression {
126128#[ serde( rename_all = "camelCase" ) ]
127129pub struct QueryTimeDimension {
128130 pub dimension : String ,
131+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
129132 pub date_range : Option < Vec < String > > ,
133+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
130134 pub compare_date_range : Option < CompareDateRangeType > ,
135+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
131136 pub granularity : Option < String > ,
132137}
133138
You can’t perform that action at this time.
0 commit comments