@@ -641,7 +641,7 @@ pub enum Expression {
641641 Variable ( String ) ,
642642 Condition ( Box < Condition > ) ,
643643 GeoDistance ( GeoDistance ) ,
644- DateTime ( String ) ,
644+ Datetime ( Datetime ) ,
645645 Mult ( MultExpression ) ,
646646 Sum ( SumExpression ) ,
647647 Neg ( NegExpression ) ,
@@ -654,6 +654,16 @@ pub enum Expression {
654654 Ln ( LnExpression ) ,
655655}
656656
657+ #[ derive( Debug , Serialize , Deserialize , JsonSchema ) ]
658+ pub struct GeoDistance {
659+ pub geo_distance : GeoDistanceParams ,
660+ }
661+
662+ #[ derive( Debug , Serialize , Deserialize , JsonSchema ) ]
663+ pub struct Datetime {
664+ pub datetime : String ,
665+ }
666+
657667#[ derive( Debug , Serialize , Deserialize , JsonSchema ) ]
658668pub struct MultExpression {
659669 pub mult : Vec < Expression > ,
@@ -717,11 +727,6 @@ pub struct LnExpression {
717727 pub ln : Box < Expression > ,
718728}
719729
720- #[ derive( Debug , Serialize , Deserialize , JsonSchema ) ]
721- pub struct GeoDistance {
722- pub geo_distance : GeoDistanceParams ,
723- }
724-
725730#[ derive( Debug , Serialize , Deserialize , JsonSchema ) ]
726731pub struct GeoDistanceParams {
727732 /// The origin geo point to measure from
0 commit comments