cedar_policy_core::entities

Module json

Source
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§

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 Schemas that can inform the parsing of Entity JSON data