Expand description
This module contains functionality for serializing and deserializing Cedar values, entities, Contexts, etc to and from JSON.
Modules§
- Error types for JSON serialization and deserialization
Structs§
- Simple type that implements
Schema
by allowing entities of all types to exist, and allowing all actions to exist, but expecting no attributes or parents on any entity (action or otherwise). - Attribute type structure used in
SchemaType
- Struct used to parse context from JSON.
- Serde JSON format for a single entity
- Struct used to parse entities from JSON.
- Structure expected by the
__extn
escape - Structure representing a Cedar record in JSON
- Simple type that implements
Schema
by expecting no entities to exist at all - A
DeserializationContext
that always returnsNone
. This is the default behaviour, - Simple type that implements
ContextSchema
by expecting an empty context - Simple type that implements
EntityTypeDescription
by expecting no attributes, tags, or parents to exist - Structure expected by the
__entity
escape - Struct used to parse Cedar values from JSON.
Enums§
- The canonical JSON representation of a Cedar value. Many Cedar values have a natural one-to-one mapping to and from JSON values. Cedar values of some types, like entity references or extension values, cannot easily be represented in JSON and thus are represented using the
__entity
, or__extn
escapes. - Errors possible when deserializing request context from JSON
- Serde JSON format for Cedar values where we know we’re expecting an entity reference
- Serde JSON format for Cedar values where we know we’re expecting an extension value
- Possible types that schema-based parsing can expect for Cedar values.
Traits§
- Trait for schemas that can inform the parsing of Context data
- A (optional) static context for deserialization of entity uids This is useful when, for plumbing reasons, we can’t get the appopriate values into the dynamic context. Primary use case is in the
DeserializeAs
trait. - Trait for a schema’s description of an individual entity type
- Trait for
Schema
s that can inform the parsing of Entity JSON data