#pragma once #include #include #include #include namespace DB { struct Role : public IAccessEntity { AccessRights access; GrantedRoles granted_roles; SettingsProfileElements settings; bool equal(const IAccessEntity & other) const override; std::shared_ptr clone() const override { return cloneImpl(); } static constexpr const Type TYPE = Type::ROLE; Type getType() const override { return TYPE; } }; using RolePtr = std::shared_ptr; }