Crate manas_semslot
source ·Expand description
It is a bad idea to encode extra semantics into opaque resource ds as part of an http engine logic. But it is ok to do so behind a linked architecture abstraction, as an implementation detail for the sake of efficiency to avoid a remote lookup. For such cases, this crate provides a type driven codec for encoding and decoding a solid resource slot path into/from it’s slot id.
Modules
- I define types for slot path enciding process.
- I define
SemanticSlotEncodingScheme
trait, and provide an implementation of it with hierarchical encoding semantics.
Structs
- A type to represent semantic resource slot. It is generic over an encoding scheme
Enums
- An error type for errors in encoding a linked resource slot.