https://github.com/ryands17/redacted-type-helper
Redacted type helper useful for loggers
https://github.com/ryands17/redacted-type-helper
redacted
Last synced: 6 months ago
JSON representation
Redacted type helper useful for loggers
- Host: GitHub
- URL: https://github.com/ryands17/redacted-type-helper
- Owner: ryands17
- License: mit
- Created: 2024-08-16T12:07:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-16T12:08:29.000Z (about 1 year ago)
- Last Synced: 2024-08-16T13:29:38.602Z (about 1 year ago)
- Topics: redacted
- Language: Rust
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Redacted type helper
This is a simple project showcasing the redacted type helper that can be helpful to prevent PII to be logged to any system. Annotating a field with the `Redacted` type will make sure that it is displayed as `` everywhere it is being logged.
You can still extract the inner value when using the debug print mechanism and also by accessing the inner struct value.