Docs.rs
  • cedar-policy-core-4.2.1
    • cedar-policy-core 4.2.1
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • aaronjeline
    • github:cedar-policy:devs
    • Dependencies
      • arbitrary ^1 normal optional
      • either ^1.8 normal
      • itertools ^0.13 normal
      • lalrpop-util ^0.22.0 normal
      • lazy_static ^1.4 normal
      • miette ^7.1.0 normal
      • nonempty ^0.10.0 normal
      • ref-cast ^1.0 normal
      • regex ^1.8 normal optional
      • rustc_lexer ^0.1 normal
      • serde ^1.0 normal
      • serde-wasm-bindgen ^0.6 normal optional
      • serde_json ^1.0 normal
      • serde_with ^3.0 normal
      • smol_str ^0.3 normal
      • stacker ^0.1.15 normal
      • thiserror ^1.0 normal
      • tsify ^0.4.5 normal optional
      • wasm-bindgen ^0.2.82 normal optional
      • cool_asserts ^2.0 dev
      • miette ^7.1.0 dev
      • lalrpop ^0.22.0 build
    • Versions
    • 100% of the crate is documented
  • Go to latest version
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate cedar_policy_core

cedar_policy_core4.2.1

  • All Items

Crate Items

  • Modules
  • Macros
  • Traits

Crates

  • cedar_policy_core

Crate cedar_policy_core

source
Expand description

Implementation of the Cedar parser and evaluation engine in Rust.

Modules§

  • ast
    This module contains the AST datatypes.
  • authorizer
    This module contains the Cedar “authorizer”, which implements the actual authorization logic.
  • entities
    This module contains the Entities type and related functionality.
  • est
    This module contains the External Syntax Tree (EST)
  • evaluator
    This module contains the Cedar evaluator.
  • extensions
    This module contains all of the standard Cedar extensions.
  • jsonvalue
    This module provides general-purpose JSON utilities not specific to Cedar.
  • parser
    This module contains the parser for the Cedar language.
  • transitive_closure
    Module containing code to compute the transitive closure of a graph. This is a generic utility, and not specific to Cedar.

Macros§

  • impl_diagnostic_from_expr_field
    Macro which implements the .labels() and .source_code() methods of miette::Diagnostic by using the parameter $i which must be an Expr (or Box<Expr>) type field.
  • impl_diagnostic_from_source_loc_field
    Macro which implements the .labels() and .source_code() methods of miette::Diagnostic by using the parameter $i which must be the name of a field of type Loc
  • impl_diagnostic_from_source_loc_opt_field
    Macro which implements the .labels() and .source_code() methods of miette::Diagnostic by using the parameter $i which must be the name of a field of type Option<Loc>
  • impl_diagnostic_from_two_source_loc_fields
    Macro which implements the .labels() and .source_code() methods of miette::Diagnostic by using the parameters $i and $j which must be names of fields of type Loc. Both locations will be underlined. It is assumed they have the same src.
  • impl_diagnostic_from_two_source_loc_opt_fields
    Macro which implements the .labels() and .source_code() methods of miette::Diagnostic by using the parameters $i and $j which must be the names of fields of type Option<Loc>. Both locations will be underlined, if both locs are present. It is assumed that both locs have the same src, if both locs are present.

Traits§

  • FromNormalizedStr
    Trait for parsing “normalized” strings only, throwing an error if a non-normalized string is encountered. See docs on the FromNormalizedStr::from_normalized_str trait function.

Results

Settings
Help
trait
cedar_policy_core::ast::ExtensionValue
Extension value.
enum variant
cedar_policy_core::ast::ValueKind::ExtensionValue
Evaluating an Expr can result in an extension value
struct
cedar_policy_core::ast::ExtensionValueWithArgs
Object container for extension values, also stores the …
trait
cedar_policy_core::ast::InternalExtensionValue
Extensions provide a type implementing ExtensionValue, Eq, …
method
cedar_policy_core::evaluator::evaluation_errors::ExtensionFunctionExecutionError::extension_name
Get the name of the extension that threw this error
trait method
cedar_policy_core::ast::ExtensionValue::typename
Get the name of the type of this value.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.