tagval 0.2.0
Modern C++23 header-only library of tagged values (open/closed enumerations with metadata)
Loading...
Searching...
No Matches
tagval::TagValMetadata Struct Reference

Runtime view of an entry's metadata. More...

#include <entry.hpp>

+ Collaboration diagram for tagval::TagValMetadata:

Public Attributes

std::string_view code
 
std::string_view label
 
std::optional< comms::Icon > icon
 
std::optional< comms::Color > color
 

Friends

constexpr bool operator== (const TagValMetadata &, const TagValMetadata &) noexcept=default
 

Detailed Description

Runtime view of an entry's metadata.

The string_views point into the eternal NTTP storage of the originating Entry type, so they remain valid for the lifetime of the program.

Friends And Related Symbol Documentation

◆ operator==

constexpr bool operator== ( const TagValMetadata ,
const TagValMetadata  
)
friend

Member Data Documentation

◆ code

std::string_view tagval::TagValMetadata::code

◆ label

std::string_view tagval::TagValMetadata::label

◆ icon

std::optional<comms::Icon> tagval::TagValMetadata::icon

◆ color

std::optional<comms::Color> tagval::TagValMetadata::color

The documentation for this struct was generated from the following file: