Trait rust_tuyapi::Truncate
source · pub trait Truncate {
// Required method
fn truncate(&self) -> Self;
// Provided method
fn truncate_str(text: &str) -> &str { ... }
}
Expand description
This trait is implemented to allow truncated logging of secret data.
Required Methods§
Provided Methods§
sourcefn truncate_str(text: &str) -> &str
fn truncate_str(text: &str) -> &str
Take the last 5 characters