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§

source

fn truncate(&self) -> Self

Provided Methods§

source

fn truncate_str(text: &str) -> &str

Take the last 5 characters

Implementors§