rust-faker 0.1.5

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

pub fn create_text(title: &'static str, description: &'static str, loop_by: i32) -> IoResult<Vec<Text>> {
  Ok((0..loop_by).map(|_| Text{ title: title.to_string(), description: description.to_string() }).collect())
}