import fastjwt.jwt; import vibe.data.json: Json; auto data = AppData ( "Test App", "Test Module", "token", "refreshToken", "crowdfunding", "user1", Json(""), Json() ); assert(is(typeof(data) == AppData)); assert(is(typeof(data.name) == string)); assert(is(typeof(data.namespace) == string)); assert(is(typeof(data.accessToken) == string)); assert(is(typeof(data.refreshToken) == string)); assert(is(typeof(data.page) == string)); assert(is(typeof(data.username) == string)); assert(is(typeof(data.videos) == Json)); assert(is(typeof(data.currentVideo) == Json)); assert(data.name == "Test App"); assert(data.namespace == "Test Module"); assert(data.accessToken == "token"); assert(data.refreshToken == "refreshToken"); assert(data.page == "crowdfunding"); assert(data.username == "user1"); assert(data.videos == Json("")); // assert(data.currentVideo == "vky56f6uykty");
AppData struct