@@ -25,7 +25,7 @@ type BorrowedSpanning<'a, T> = Spanning<T, &'a Span>;
25
25
///
26
26
/// In contrast to an [`InputValue`], these values do only contain constants,
27
27
/// meaning that variables get automatically resolved.
28
- #[ derive( Clone , Copy , Debug , PartialEq ) ]
28
+ #[ derive( Clone , Debug , PartialEq ) ]
29
29
#[ allow( missing_docs) ]
30
30
pub enum LookAheadValue < ' a , S : ScalarValue + ' a > {
31
31
Null ,
@@ -73,8 +73,10 @@ impl<'a, S: ScalarValue + 'a> LookAheadValue<'a, S> {
73
73
}
74
74
}
75
75
76
+ impl < ' a , S : ScalarValue > Copy for LookAheadValue < ' a , S > where Self : Clone { }
77
+
76
78
/// A JSON-like list that can be used as an argument in the query execution.
77
- #[ derive( Clone , Copy , Debug ) ]
79
+ #[ derive( Clone , Debug ) ]
78
80
pub struct LookAheadList < ' a , S > {
79
81
input_list : & ' a [ Spanning < InputValue < S > > ] ,
80
82
vars : Option < & ' a Variables < S > > ,
@@ -90,6 +92,8 @@ impl<'a, S: ScalarValue> LookAheadList<'a, S> {
90
92
}
91
93
}
92
94
95
+ impl < ' a , S : ScalarValue > Copy for LookAheadList < ' a , S > where Self : Clone { }
96
+
93
97
impl < ' a , S > Default for LookAheadList < ' a , S > {
94
98
fn default ( ) -> Self {
95
99
Self {
@@ -130,7 +134,7 @@ impl<'a, S: ScalarValue + 'a> IntoIterator for &LookAheadList<'a, S> {
130
134
}
131
135
132
136
/// A JSON-like object that can be used as an argument in the query execution.
133
- #[ derive( Clone , Copy , Debug ) ]
137
+ #[ derive( Clone , Debug ) ]
134
138
pub struct LookAheadObject < ' a , S > {
135
139
input_object : & ' a [ ( Spanning < String > , Spanning < InputValue < S > > ) ] ,
136
140
vars : Option < & ' a Variables < S > > ,
@@ -146,6 +150,8 @@ impl<'a, S: ScalarValue + 'a> LookAheadObject<'a, S> {
146
150
}
147
151
}
148
152
153
+ impl < ' a , S : ScalarValue > Copy for LookAheadObject < ' a , S > where Self : Clone { }
154
+
149
155
impl < ' a , S > Default for LookAheadObject < ' a , S > {
150
156
fn default ( ) -> Self {
151
157
Self {
0 commit comments