zabbix-api 0.9.0

Zabbix API client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use fake::{Fake, StringFaker};

pub fn get_random_string() -> String {
    StringFaker::with(
        Vec::from("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"),
        12..32,
    )
    .fake()
}

/// Generates a random 32-character hexadecimal string (16 bytes)
pub fn get_random_hex_string() -> String {
    StringFaker::with(Vec::from("0123456789abcdef"), 32).fake()
}