Azure / azure-sdk-for-rust

This repository is for the active development of the Azure SDK for Rust. For consumers of the SDK we recommend visiting Docs.rs and looking up the docs for any of libraries in the SDK.
MIT License
714 stars 247 forks source link

Add SafeDebug trait derive macro #1923

Closed heaths closed 6 days ago

heaths commented 6 days ago

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

heaths commented 6 days ago

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