A StorageKey represents a value that is either New or Existing.
StorageKey is a type that would be used normally as a key in an
EveryDict
or EveryDictList
to indicate if a value is already Existing - that is, stored in the backend, or New.
If used as a key for an EveryDict we are guarnteed to have only a single New.
Determines if a StorageKey is of type Existing.
StorageKey.New
|> StorageKey.isExisting --> False
StorageKey.Existing "uuid-1234"
|> StorageKey.isExisting --> TrueDetermines if a StorageKey is of type New.
StorageKey.New
|> StorageKey.isNew --> True
StorageKey.Existing "uuid-1234"
|> StorageKey.isNew --> False
A
StorageKeyvalue is eitherNeworExisting.