Database schema optimization - part 11
This commit is contained in:
@@ -70,7 +70,7 @@ where
|
||||
Close,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Default)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct Comparator<T>
|
||||
where
|
||||
T: for<'de> DeserializeArguments<'de> + Default,
|
||||
@@ -358,3 +358,16 @@ where
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Default for Comparator<T>
|
||||
where
|
||||
T: for<'de> DeserializeArguments<'de> + Default,
|
||||
{
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
is_ascending: true,
|
||||
collation: None,
|
||||
property: T::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user