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