diff --git a/src/uuid/mod.rs b/src/uuid/mod.rs index 21309acf..7c41a741 100644 --- a/src/uuid/mod.rs +++ b/src/uuid/mod.rs @@ -162,7 +162,7 @@ pub(crate) const UUID_NEWTYPE_NAME: &str = "$__bson_private_uuid"; /// will also allow deserialization from 16 byte + subtype 0 Binary values in BSON if part of a /// `#[serde(flatten)]` chain. This behavior shouldn't be relied upon as it may be fixed at some /// point in the future. -#[derive(Clone, Copy, PartialEq, Hash)] +#[derive(Clone, Copy, PartialEq, Hash, Eq, PartialOrd, Ord)] pub struct Uuid { uuid: uuid::Uuid, }