junobuild_collections/assert/collection.rs
1use crate::constants::core::SYS_COLLECTION_PREFIX;
2use crate::types::core::CollectionKey;
3
4pub fn is_system_collection(collection: &CollectionKey) -> bool {
5 collection.starts_with(SYS_COLLECTION_PREFIX)
6}
7
8pub fn is_not_system_collection(collection: &CollectionKey) -> bool {
9 !is_system_collection(collection)
10}