Expand description
Cedar is a policy language used to express permisisons using a relationship model.
This crate extends the cedar-policy
crate by adding some type safe traits and
a code generator crate scuffle-cedar-policy-codegen
which can be used
to generate types from a cedar schema file.
You can then use this in combo with cedar to have type-safe schema evaluation.
See the changelog for a full release history.
§Feature flags
No documented features in Cargo.toml
§License
This project is licensed under the MIT or Apache-2.0 license. You can choose between one of them if you use this work.
SPDX-License-Identifier: MIT OR Apache-2.0
Modules§
- changelog
- Changelogs generated by scuffle_changelog
Enums§
- Cedar
Action Request Error - An error that can occur when building a requst from a CedarAction.
Structs§
- Entities
Builder - A request builder used to construct a cedar_policy::Entities.
- Entity
- A cedar entity
- Entity
Builder - Use builder syntax to set the inputs and finish with
build()
. - Entity
Uid - An entity ref is used by entities to refer to another entity.
- Entity
Type Name - A compile time checked entity type name
Traits§
- Cedar
Action - A trait defining a relationship between a cedar action its principal and resource.
- Cedar
Action Entity - A trait which defines a action entity for a specific type.
- Cedar
Child - A trait defining a relationship between two cedar entities or two cedar actions. This is used to construct entity parents or action groups.
- Cedar
Entity - A trait defining an entity.
- Cedar
Enum Entity - A special trait for enum style entities.
- CedarId
- A type which can be used as a CedarId
Structs§
- Empty
Context - A type used by crate::CedarAction::Context to indicate that no context is provided.
- NoAttributes
- A type used by crate::CedarEntity::Attrs to indicate that the entity has no attributes.
Enums§
- NoTag
- A type used by crate::CedarEntity::TagType to indicate that no tag is provided.
Macros§
- entity_
type_ name - A macro for creating a compile time checked entity type name