$darkmode
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 | |
| Confable & | operator= (const Confable &other) noexcept |
| Confable & | operator= (Confable &&other) noexcept |
| virtual void | reset_schema () |
| Schema & | schema () |
| const Schema & | schema () 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< Address > | address |
| 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 () |