There will probably be very few distinct mimetypes in the system, and we don't want to confuse a mimetype string with something else.
So, in values.rs, in the definition of Binary, we should use Id<MimetypeId> instead of String for the mimetype. This way, once issue #11 has landed, we'll benefit automatically from string caching.
There will probably be very few distinct mimetypes in the system, and we don't want to confuse a mimetype string with something else.
So, in
values.rs
, in the definition ofBinary
, we should useId<MimetypeId>
instead ofString
for the mimetype. This way, once issue #11 has landed, we'll benefit automatically from string caching.