This commit is contained in:
Brandon Thomas committed 2023-10-25 00:59:27 -04:00
1 parent d90df6f8b8
commit f40a292b1e
1 file changed
+5
+5
View File
@@ -6,6 +6,11 @@ use strum::EnumCount;
#[cfg(test)]
use strum::EnumIter;
// TODO(bt,2023-10-25): Group these into three enums -
// TokenPrefix, DeprecatedTokenPrefix, (private) RetiredTokenPrefix
// Then make the same uniqueness assertions.
// Assert the new token prefixes only end with underscore.
/// Each entity type in our system gets a unique prefix.
/// Older entities have prefixes ending in ':', but newer entities use the Stripe-style "_"
/// separator, which makes it easy to select and copy entire tokens with just mouse clicks across