1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
use crate::data::contact; use crate::data::internet; use crate::misc; use crate::name; use ::std::string::String; pub struct Info { phone: String, email: String, } pub fn info() -> Info { Info { phone: phone_formatted(), email: email(), } } pub fn phone() -> String { misc::replace_with_numbers("##########".to_string()) } pub fn phone_formatted() -> String { misc::replace_with_numbers(misc::random_data(contact::PHONE).to_string()) } pub fn email() -> String { format!( "{}{}@{}.{}", name::first(), name::last(), name::last(), misc::random_data(internet::DOMAIN_SUFFIX).to_string() ) .to_lowercase() }