Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::EditFieldKey Class Reference

Owning field identity; local shorthand is deliberately not persistent. More...

#include <model_edit.hpp>

Public Member Functions

std::string_view name () const noexcept
bool persistent () const noexcept
bool operator== (const EditFieldKey &other) const noexcept

Static Public Member Functions

static std::expected< EditFieldKey, TreeError > create (std::string_view value)
static EditFieldKey local (std::uint64_t identity) noexcept

Detailed Description

Owning field identity; local shorthand is deliberately not persistent.

Member Function Documentation

◆ create()

std::expected< EditFieldKey, TreeError > portals::EditFieldKey::create ( std::string_view value)
static
Parameters
valueNonempty 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
identityPositive 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
otherComplete 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: