junobuild-collections 0.5.2

The types and rules to define collections.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::constants::core::SYS_COLLECTION_PREFIX;
use crate::types::core::CollectionKey;

pub fn is_system_collection(collection: &CollectionKey) -> bool {
    collection.starts_with(SYS_COLLECTION_PREFIX)
}

pub fn is_not_system_collection(collection: &CollectionKey) -> bool {
    !is_system_collection(collection)
}