-
Notifications
You must be signed in to change notification settings - Fork 2
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
[PLATFORM-865]: Add a builder type for redaction to Veil, for manually redacting arbitrary data #64
Merged
WilliamVenner
merged 9 commits into
master
from
PLATFORM-865/user-story/add-a-builder-type-for-redaction-to-veil-for-manually-redacting-arbitrary-data
Dec 22, 2022
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WilliamVenner
force-pushed
the
PLATFORM-865/user-story/add-a-builder-type-for-redaction-to-veil-for-manually-redacting-arbitrary-data
branch
from
December 15, 2022 14:32
b4108e6
to
fffffb7
Compare
MaeIsBad
reviewed
Dec 19, 2022
WilliamVenner
force-pushed
the
PLATFORM-865/user-story/add-a-builder-type-for-redaction-to-veil-for-manually-redacting-arbitrary-data
branch
from
December 20, 2022 11:22
fffffb7
to
3321d93
Compare
MaeIsBad
reviewed
Dec 20, 2022
MaeIsBad
previously approved these changes
Dec 20, 2022
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.
I think this is good to merge, but I'd wait for another review on all these PRs
…dacting arbitrary data
WilliamVenner
force-pushed
the
PLATFORM-865/user-story/add-a-builder-type-for-redaction-to-veil-for-manually-redacting-arbitrary-data
branch
from
December 20, 2022 15:35
9dc2a91
to
76abc3b
Compare
MaeIsBad
approved these changes
Dec 20, 2022
WilliamVenner
deleted the
PLATFORM-865/user-story/add-a-builder-type-for-redaction-to-veil-for-manually-redacting-arbitrary-data
branch
December 22, 2022 10:51
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://prima-assicurazioni-spa.myjetbrains.com/youtrack/issue/PLATFORM-865
This PR introduces the
Redactor
,RedactorBuilder
andRedactWrapped
types.The
RedactorBuilder
allows for building aRedactor
using familiar flags seen in the#[redact]
derive macro. The builtRedactor
may then be used to redact any arbitrary data using the flags provided.The
RedactorBuilder
has been set up for 100% const evaluation, therefore the compiler is able to completely eliminate any error checking at compile time. The error checking is zero cost if everything is known at compile time :DFinally I have also used the
RedactWrapped
type as a convenience API. It is returned by thewrap
method ofRedactor
. I have documented this with examples, and plan to document everything on a higher level (e.g. in examples/ and the crate root docs) in a separate PR.