Email Generator 2.1.3
Email addresses in each country's style for C++23
Loading...
Searching...
No Matches
dasmig::email_request Struct Reference

What an email call asks for. More...

#include <emailgen.hpp>

Public Attributes

std::optional< std::string > country {std::nullopt}
 ISO-3166 two-letter country code (any case), or a country drawn when absent. The country sets the style of the local part and the provider domains.
 
std::string given {}
 Given name; empty when unknown. // NOLINT(readability-redundant-member-init): keeps -Wextra quiet for partial designated initializers.
 
std::string family {}
 Family name; empty when unknown. // NOLINT(readability-redundant-member-init): keeps -Wextra quiet for partial designated initializers.
 
std::string nickname {}
 Nickname or handle; empty when unknown. // NOLINT(readability-redundant-member-init): keeps -Wextra quiet for partial designated initializers.
 
std::optional< int > birth_year {std::nullopt}
 Birth year, for the ana85 and ana1985 styles; those styles are left out when absent.
 
bool safe {false}
 Use a reserved domain (example.com, .net, .org, RFC 2606), so a message sent to the address reaches nobody.
 
bool weighted {true}
 Weighted selection (default): countries by population, styles and domains by their weights. False selects uniformly.
 

Detailed Description

What an email call asks for.

Every generation call takes one; email_request{} asks for the defaults. Choices are never stored on the generator, so one call cannot change the next. The names are plain values in UTF-8: pass the Latin form of a name written in another script, or nothing, and a handle style is used.

Definition at line 46 of file emailgen.hpp.

Member Data Documentation

◆ birth_year

std::optional<int> dasmig::email_request::birth_year {std::nullopt}

Birth year, for the ana85 and ana1985 styles; those styles are left out when absent.

Definition at line 59 of file emailgen.hpp.

◆ country

std::optional<std::string> dasmig::email_request::country {std::nullopt}

ISO-3166 two-letter country code (any case), or a country drawn when absent. The country sets the style of the local part and the provider domains.

Definition at line 51 of file emailgen.hpp.

◆ family

std::string dasmig::email_request::family {}

Family name; empty when unknown. // NOLINT(readability-redundant-member-init): keeps -Wextra quiet for partial designated initializers.

Definition at line 54 of file emailgen.hpp.

◆ given

std::string dasmig::email_request::given {}

Given name; empty when unknown. // NOLINT(readability-redundant-member-init): keeps -Wextra quiet for partial designated initializers.

Definition at line 53 of file emailgen.hpp.

◆ nickname

std::string dasmig::email_request::nickname {}

Nickname or handle; empty when unknown. // NOLINT(readability-redundant-member-init): keeps -Wextra quiet for partial designated initializers.

Definition at line 55 of file emailgen.hpp.

◆ safe

bool dasmig::email_request::safe {false}

Use a reserved domain (example.com, .net, .org, RFC 2606), so a message sent to the address reaches nobody.

Definition at line 63 of file emailgen.hpp.

◆ weighted

bool dasmig::email_request::weighted {true}

Weighted selection (default): countries by population, styles and domains by their weights. False selects uniformly.

Definition at line 67 of file emailgen.hpp.


The documentation for this struct was generated from the following file: