Skip to content

Add a member function into_split for cedar_policy::Entity #636

@0x00A5

Description

@0x00A5

Category

User level API features/changes

Describe the feature you'd like to request

Add a new member function, into_split, under Entity with the following function signature:

/// Disassemble an `Entity` into its unique ID, attributes and parents.
pub fn into_split(self) -> (EntityUid, HashMap<String, RestrictedExpression>, HashSet<EntityUid>);

This function will allow users to mutate an entity's attributes and parents after splitting and then re-assemble back into a cedar_policy::Entity.

Describe alternatives you've considered

None

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    4.0feature-requestThis issue requets a substantial new feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions