Trait rust_tuyapi::Truncate[][src]

pub trait Truncate {
    fn truncate(&self) -> Self;

    fn truncate_str(text: &str) -> &str { ... }
}

This trait is implemented to allow truncated logging of secret data.

Required methods

fn truncate(&self) -> Self[src]

Loading content...

Provided methods

fn truncate_str(text: &str) -> &str[src]

Take the last 5 characters

Loading content...

Implementors

Loading content...