auto number = PhoneNumber(sha1UUID("test", sha1UUID("namespace")), "44", "07999999999", "369"); assert(is(typeof(number) == PhoneNumber)); assert(is(typeof(number.id) == UUID)); assert(is(typeof(number.countryCode) == string)); assert(is(typeof(number.phoneNumber) == string)); assert(is(typeof(number.extension) == string)); assert(number.id == sha1UUID("test", sha1UUID("namespace"))); assert(number.countryCode == "44"); assert(number.phoneNumber == "07999999999"); assert(number.extension == "369");
PhoneNumber: struct