Skip to main content

Module store

Module store 

Source
Expand description

The store interface a resource is built on, and an in-memory implementation.

A store is anything that can list, read, create, replace, merge and delete items; MemoryStore is the built-in one, so that a working CRUD API is one call away in examples, tests and prototypes.

Structs§

MemoryStore
A resource store backed by an ordered list of items.

Traits§

Store
What a store must be able to do for crate::resource::register_resource.

Functions§

id_to_string
Render an identifier as the text a path carries.
normalize_id
Normalise an identifier so that "1" from a path matches a stored 1.