Module cedar_policy_core::entities

source ·
Expand description

This module contains the Entities type and related functionality.

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.
  • Represents an entity hierarchy, and allows looking up Entity objects by UID. Note that Entities is Serialize, but currently this is only used for the FFI layer in DRT. All others use (and should use) the from_json_*() and write_to_json() methods as necessary.
  • Serde JSON format for a single entity
  • Struct used to parse entities from JSON.
  • Struct used to check whether entities conform to a schema
  • Structure expected by the __extn escape
  • Found a set whose elements don’t all have the same type. This doesn’t match any possible schema.
  • Structure representing a Cedar record in JSON
  • Simple type that implements Schema by expecting no entities to exist at all
  • Simple type that implements ContextSchema by expecting an empty context
  • Simple type that implements EntityTypeDescription by expecting no attributes to exist
  • Structure expected by the __entity escape
  • Type mismatch error (in terms of SchemaType)
  • Encountered an entity of a type which is not declared in the schema. Note that this error is only used for non-Action entity types.
  • Struct used to parse Cedar values from JSON.

Enums§

Traits§

  • Trait for schemas that can inform the parsing of Context data
  • Trait for a schema’s description of an individual entity type
  • Trait for Schemas that can inform the parsing of Entity JSON data

Functions§

Type Aliases§

  • Type alias for convenience