Skip to content
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

Add SafeDebug trait derive macro #1923

Merged
merged 3 commits into from
Nov 20, 2024
Merged

Add SafeDebug trait derive macro #1923

merged 3 commits into from
Nov 20, 2024

Conversation

heaths
Copy link
Member

@heaths heaths commented Nov 19, 2024

SafeDebug is really just a marker trait. The associated derive macro implements Debug in a way to reduce potentially leaking PII. Currently it just outputs the struct or enum name with the non-exhaustive finish e.g., MyModel { .. } but we will expand that later.

Relates to #1707

SafeDebug is really just a marker trait. The associated derive macro implements `Debug` in a way to reduce potentially leaking PII. Currently it just outputs the struct or enum name with the non-exhaustive finish e.g., `MyModel { .. }` but we will expand that later.

Relates to Azure#1707
@heaths
Copy link
Member Author

heaths commented Nov 19, 2024

@JeffreyRichter @RickWinter this corresponds to the Rust guidelines I just merged upon Jeffrey's approval.

@heaths heaths merged commit 1ebb2ce into Azure:main Nov 20, 2024
13 checks passed
@heaths heaths deleted the safe-debug branch November 20, 2024 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants