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 {
31 return static_cast<std::uint64_t>(v);
34std::string ToString(UserId v);
37std::basic_ostream<Char>& operator<<(std::basic_ostream<Char>& os, UserId v) {
38 return os << ToUInt64(v);