8#include <userver/formats/parse/to.hpp>
10USERVER_NAMESPACE_BEGIN
16namespace server::auth {
21enum class UserId : std::uint64_t {};
23using UserIds = std::vector<UserId>;
26UserId Parse(
const Value& v, formats::
parse::
To<UserId>) {
27 return UserId{v.
template As<std::uint64_t>()};
30inline std::uint64_t ToUInt64(UserId v)
noexcept {
return static_cast<std::uint64_t>(v); }
32std::string ToString(UserId v);
35std::basic_ostream<Char>& operator<<(std::basic_ostream<Char>& os, UserId v) {
36 return os << ToUInt64(v);