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

Logical resource namespace, distinct from its current delivery session. Reuse an existing SourceStamp as the resource origin; no second identity issuer is needed. Keep lineage stable only while the provider can map old positions. A new unrelated document at the same path needs a different identity or lineage. More...

#include <model_position.hpp>

Public Member Functions

bool operator== (const ModelResource &other) const noexcept=default

Static Public Member Functions

static std::expected< ModelResource, SourceError > create ()

Public Attributes

SourceStamp identity
 Existing origin namespace; both fields must be nonzero.
std::uint64_t lineage {}
 Nonzero provider-maintained compatible-history generation.

Detailed Description

Logical resource namespace, distinct from its current delivery session. Reuse an existing SourceStamp as the resource origin; no second identity issuer is needed. Keep lineage stable only while the provider can map old positions. A new unrelated document at the same path needs a different identity or lineage.

Member Function Documentation

◆ create()

std::expected< ModelResource, SourceError > portals::ModelResource::create ( )
static
Returns
New resource using the existing source identity issuer, with initial lineage one. Returns IDENTITY_EXHAUSTED instead of reusing a namespace.

◆ operator==()

bool portals::ModelResource::operator== ( const ModelResource & other) const
defaultnoexcept
Parameters
otherResource namespace to compare.
Returns
True when identity and compatible-history generation match.

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