$darkmode
Contact Struct Reference
Inheritance diagram for Contact:
Collaboration diagram for Contact:

Public Member Functions

 Contact (std::string first, std::string last, bool alive, std::optional< uint8_t > age) noexcept
 
Contact with_address (Address &&addr) &&
 
Contact with_phone (PhoneNumber &&tel) &&
 
 CONFABLE_SCHEMA (Contact)
 
- Public Member Functions inherited from fable::Confable
 Confable (const Confable &) noexcept
 
 Confable (Confable &&) noexcept=default
 
Confableoperator= (const Confable &other) noexcept
 
Confableoperator= (Confable &&other) noexcept
 
virtual void reset_schema ()
 
Schemaschema ()
 
const Schemaschema () const
 
virtual void validate_or_throw (const Conf &c) const
 
virtual bool validate (const Conf &c, std::optional< SchemaError > &err) const
 
virtual void from_conf (const Conf &c)
 
virtual void to_json (Json &j) const
 
Json to_json () const
 

Public Attributes

std::string firstName
 
std::string lastName
 
bool isAlive {false}
 
std::optional< uint8_t > age {0}
 
std::optional< Addressaddress
 
std::vector< PhoneNumber > phoneNumbers
 
std::vector< std::string > children
 
std::optional< std::string > spouse
 

Additional Inherited Members

- Protected Member Functions inherited from fable::Confable
virtual Schema schema_impl ()
 

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