rust-faker 0.1.5

create fake data with rust
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::{Email};
use std::io::Result as IoResult;

pub fn create_emails(email: &'static str, loop_by: i32) -> IoResult<Vec<Email>> {
  Ok((0..loop_by).map(|_| Email{ email: email.to_string()}).collect())
}

pub fn create_email(email: &'static str) -> IoResult<Email> {
  Ok(Email{ email: email.to_string() })
}