- RESETABLE<std::string> password;
- RESETABLE<int> passive;
- RESETABLE<int> disabled;
- RESETABLE<int> disabledDetailStat;
- RESETABLE<int> alwaysOnline;
- RESETABLE<std::string> tariffName;
- RESETABLE<std::string> address;
- RESETABLE<std::string> phone;
- RESETABLE<std::string> email;
- RESETABLE<std::string> note;
- RESETABLE<std::string> realName;
- RESETABLE<std::string> group;
- RESETABLE<double> credit;
- RESETABLE<std::string> nextTariff;
- std::vector<RESETABLE<std::string> > userdata;
- RESETABLE<time_t> creditExpire;
- RESETABLE<USER_IPS> ips;
+ UserConfOpt(const UserConfOpt&) = default;
+ UserConfOpt& operator=(const UserConfOpt&) = default;
+ UserConfOpt(UserConfOpt&&) = default;
+ UserConfOpt& operator=(UserConfOpt&&) = default;
+
+ Optional<std::string> password;
+ Optional<int> passive;
+ Optional<int> disabled;
+ Optional<int> disabledDetailStat;
+ Optional<int> alwaysOnline;
+ Optional<std::string> tariffName;
+ Optional<std::string> address;
+ Optional<std::string> phone;
+ Optional<std::string> email;
+ Optional<std::string> note;
+ Optional<std::string> realName;
+ Optional<std::string> corp;
+ Optional<std::string> group;
+ Optional<double> credit;
+ Optional<std::string> nextTariff;
+ std::vector<Optional<std::string> > userdata;
+ Optional<std::vector<std::string> > services;
+ Optional<time_t> creditExpire;
+ Optional<UserIPs> ips;