thegraph: Derive the Debug trait for all StoreQuery related types
@@ -5,6 +5,7 @@ use data::store::*;
use util::stream::StreamError;
/// Key by which an individual entity in the store can be accessed.
+#[derive(Debug)]
pub struct StoreKey {
/// Name of the entity type.
pub entity: String,
@@ -14,6 +15,7 @@ pub struct StoreKey {
}
/// Supported types of store filters.
+#[derive(Debug)]
pub enum StoreFilter {
And(Vec<StoreFilter>),
Or(Vec<StoreFilter>),
@@ -33,12 +35,14 @@ pub enum StoreFilter {
}
/// The order in which entities should be restored from a store.
+#[derive(Debug)]
pub enum StoreOrder {
Ascending,
Descending,
}
/// How many entities to return, how many to skip etc.
+#[derive(Debug)]
pub struct StoreRange {
/// How many entities to return.
pub first: usize,
@@ -48,6 +52,7 @@ pub struct StoreRange {
}
/// A query for entities in a store.
+#[derive(Debug)]
pub struct StoreQuery {
/// The name of the entity type.
pub entity: String,
