Skip to main content

bson_enum

Macro bson_enum 

Source
macro_rules! bson_enum {
    ($enum:ty) => { ... };
}
Expand description

States that an enumeration is serialized as its number: the counterpart of Type.IsEnum and Enum.GetUnderlyingType. The enumeration is #[repr(i32)], Copy, and has fn from_value(i32) -> Option<Self>.