-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added some useful methods and docs #1186
Conversation
Signed-off-by: Aaron Eline <aeline+github@amazon.com>
47f507f
to
f759fef
Compare
cedar-policy/src/api.rs
Outdated
@@ -345,6 +356,10 @@ impl Entities { | |||
/// error if attributes have the wrong types (e.g., string instead of | |||
/// integer), or if required attributes are missing or superfluous | |||
/// attributes are provided. | |||
/// # Errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could consider enabling the missing_error_doc lint if we believe this sort of documentation is valuable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, one comment about panic safety
Co-authored-by: John Kastner <130772734+john-h-kastner-aws@users.noreply.github.com> Co-authored-by: Craig Disselkoen <cdiss@amazon.com> Signed-off-by: Aaron Eline <aeline+github@amazon.com>
e1058bf
to
f6b153e
Compare
Signed-off-by: Aaron Eline <aeline+github@amazon.com> Co-authored-by: John Kastner <130772734+john-h-kastner-aws@users.noreply.github.com> Co-authored-by: Craig Disselkoen <cdiss@amazon.com>
Signed-off-by: Aaron Eline <aeline+github@amazon.com> Co-authored-by: John Kastner <130772734+john-h-kastner-aws@users.noreply.github.com> Co-authored-by: Craig Disselkoen <cdiss@amazon.com>
Description of changes
Entity::new_without_attrs
that can't errorEntity
is nowHash
, which is very useful as we require that entity collections lack duplicatesEntities
clarifying when errors are returnedIssue #, if available
#1184
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
cedar-policy
(e.g., addition of a new 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):