randir 0.1.0

Generates a directory with random names and telephone numbers.
Documentation

randir

Generates a directory with random names and telephone numbers

Example use

use randir::utils::generate_entries;

fn main() {
    // generate 100 random names and telephone numbers
    let directory = generate_entries(100);
    for entry in directory {
        println!("{}", entry)
    }
}

Detail

The result type of the generate_entries() function is a Vec<Entry>. Entry is defined as:

pub struct Entry {
    pub uid: usize,
    pub first_name: String,
    pub last_name: String,
    pub phone_nr: String,
}