This PR change the return type to both methods to Option<&str>. Due to the author's limited knowledge of Rust, I have to add a new function in core to get a reference to the Template. Otherwise we could let the return type be Option<SmolStr>.
Issue #, if available
1116
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
[x] A breaking change requiring a major version bump to cedar-policy (e.g., changes to the signature of an existing API).
I confirm that this PR (choose one, and delete the other options):
[x] Updates the "Unreleased" section of the CHANGELOG with a description of my change (required for major/minor version bumps).
I confirm that cedar-spec (choose one, and delete the other options):
[x] Does not require updates because my change does not impact the Cedar formal model or DRT infrastructure.
Description of changes
This PR change the return type to both methods to
Option<&str>
. Due to the author's limited knowledge of Rust, I have to add a new function in core to get a reference to theTemplate
. Otherwise we could let the return type beOption<SmolStr>
.Issue #, if available
1116
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
cedar-policy
(e.g., changes to the signature of an existing API).I confirm that this PR (choose one, and delete the other options):
I confirm that
cedar-spec
(choose one, and delete the other options):