diff --git a/edn/src/query.rs b/edn/src/query.rs index ca8ec76b..e4ba9f43 100644 --- a/edn/src/query.rs +++ b/edn/src/query.rs @@ -545,19 +545,19 @@ impl std::fmt::Display for PullAttributeSpec { } -#[derive(Debug, Eq, PartialEq)] +#[derive(Clone, Debug, Eq, PartialEq)] pub struct Pull { pub var: Variable, pub patterns: Vec, } -#[derive(Debug, Eq, PartialEq)] +#[derive(Clone, Debug, Eq, PartialEq)] pub struct Aggregate { pub func: QueryFunction, pub args: Vec, } -#[derive(Debug, Eq, PartialEq)] +#[derive(Clone, Debug, Eq, PartialEq)] pub enum Element { Variable(Variable), Aggregate(Aggregate), @@ -650,7 +650,7 @@ pub enum Limit { /// # } /// ``` /// -#[derive(Debug, Eq, PartialEq)] +#[derive(Clone, Debug, Eq, PartialEq)] pub enum FindSpec { /// Returns an array of arrays, represented as a single array with length a multiple of width. FindRel(Vec),