Database schema optimization - part 11

This commit is contained in:
mdecimus
2025-11-12 19:09:06 +01:00
parent 3e181ae467
commit 8bbcb999d1
40 changed files with 541 additions and 493 deletions

View File

@@ -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(),
}
}
}