import std.uuid : UUID, sha1UUID; auto account = SocialAccount(sha1UUID("test", sha1UUID("namespace")), "facebook", "konnex-engine", "konnex"); assert(is(typeof(account) == SocialAccount)); assert(is(typeof(account.id) == UUID)); assert(is(typeof(account.platform) == string)); assert(is(typeof(account.handle) == string)); assert(is(typeof(account.homepage) == string)); assert(account.id == sha1UUID("test", sha1UUID("namespace"))); assert(account.platform == "facebook"); assert(account.handle == "konnex-engine"); assert(account.homepage == "konnex");
SocialAccount struct