Function insta::rounded_redaction
source · pub fn rounded_redaction(decimals: usize) -> Redaction
Available on crate feature
redactions
only.Expand description
Creates a redaction that rounds floating point numbers to a given number of decimal places.
settings.add_redaction(".sum", rounded_redaction(2));