pub fn directory() -> StringExpand description
Generate a random directory name
Examples found in repository?
examples/it_security.rs (line 21)
6fn main() {
7 println!("=== Faker-Rust IT Security & Auth Examples ===\n");
8
9 // Vulnerability Identifier
10 println!("🔒 VULNERABILITIES (CVE/CWE):");
11 println!(" CVE: {}", vulnerability_identifier::cve());
12 println!(" CWE: {}", vulnerability_identifier::cwe());
13 println!(" GHSA: {}", vulnerability_identifier::ghsa());
14 println!();
15
16 // OmniAuth / Auth profiles
17 println!("🔑 OMNIAUTH (SSO profiles):");
18 println!(" Provider: {}", omniauth::provider());
19 println!(" UID: {}", omniauth::uid());
20 println!(" Name: {}", omniauth::name());
21 println!(" Directory: {}", omniauth::directory());
22 println!();
23
24 // Cryptography / Hashes
25 println!("🔐 CRYPTOCURRENCY:");
26 println!(" Coin: {}", crypto::coin());
27 println!(" Name: {}", crypto::name());
28 println!(" Symbol: {}", crypto::symbol());
29 println!();
30
31 // Hackers
32 println!("👨💻 HACKER JARGON:");
33 println!(" Abbreviation: {}", hacker::abbreviation());
34 println!(" Adjective: {}", hacker::adjective());
35 println!(" Noun: {}", hacker::noun());
36 println!(" Verb: {}", hacker::verb());
37 println!(" Phrase: {}", hacker::phrase());
38 println!();
39
40 // Internet (User Agent, Password)
41 println!("🌐 INTERNET SECURITY:");
42 println!(" Password (strong): {}", internet::password(16, 24, true, true));
43 println!(" MAC Address: {}", internet::mac_address(None));
44 println!(" IPv4: {}", internet::ip_v4());
45 println!(" IPv6: {}", internet::ip_v6());
46 println!();
47
48 // Slack Emoji
49 println!("💬 INTERNET CHAT:");
50 println!(" Slack Emoji: {}", slack_emoji::emoji());
51 println!(" Custom Emoji: {}", slack_emoji::custom_emoji());
52 println!(" People Emoji: {}", slack_emoji::people());
53 println!();
54}