rust-faker 0.1.5

create fake data with rust
Documentation
1
2
3
4
5
6
use crate::{Address};
use std::io::Result as IoResult;

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