Owning field identity; local shorthand is deliberately not persistent.
More...
#include <model_edit.hpp>
|
| std::string_view | name () const noexcept |
| bool | persistent () const noexcept |
| bool | operator== (const EditFieldKey &other) const noexcept |
|
| static std::expected< EditFieldKey, TreeError > | create (std::string_view value) |
| static EditFieldKey | local (std::uint64_t identity) noexcept |
Owning field identity; local shorthand is deliberately not persistent.
◆ create()
| std::expected< EditFieldKey, TreeError > portals::EditFieldKey::create |
( |
std::string_view | value | ) |
|
|
static |
- Parameters
-
| value | Nonempty stable key interpreted by the endpoint's schema. |
- Returns
- Owning key or checked validation/allocation failure.
◆ local()
| EditFieldKey portals::EditFieldKey::local |
( |
std::uint64_t | identity | ) |
|
|
staticnoexcept |
- Parameters
-
| identity | Positive session-local shorthand identity. |
- Returns
- Process-local key; never serialize this as a persistent field identifier.
◆ name()
| std::string_view portals::EditFieldKey::name |
( |
| ) |
const |
|
noexcept |
- Returns
- Schema key borrowed while this value or a copy survives.
◆ operator==()
| bool portals::EditFieldKey::operator== |
( |
const EditFieldKey & | other | ) |
const |
|
noexcept |
- Parameters
-
| other | Complete key to compare. |
- Returns
- Equality including key domain.
◆ persistent()
| bool portals::EditFieldKey::persistent |
( |
| ) |
const |
|
noexcept |
- Returns
- Whether the key was explicitly supplied for persistent adapter use.
The documentation for this class was generated from the following file: