pub struct FrameId {
pub provider_id: String,
pub frame_id: String,
pub content_digest: Option<String>,
}Expand description
The stable identity of one frame’s exact content bytes: (provider id, frame id, content digest).
The derived Ord is the protocol’s canonical composition order —
fields compare in declaration order, i.e. by provider_id, then
frame_id, then content_digest. Sorting a frame set by FrameId is
what makes an unchanged set render byte-identically across turns and across
hosts (docs/context-reuse.md §1).
Fields§
§provider_id: StringThe host-facing id of the provider that served the frame — the same routing/consent key the host registered it under.
frame_id: StringThe provider-scoped frame id (ContextFrame::id),
stable for dedup across queries.
content_digest: Option<String>The provider-declared digest of the frame’s content bytes — opaque to
the protocol (e.g. sha256:<hex>). None when the provider declared
none: such a frame is not verifiable and a host re-queries it rather
than trusting it stale (docs/context-reuse.md §4).
Implementations§
Source§impl FrameId
impl FrameId
Sourcepub fn new(
provider_id: impl Into<String>,
frame_id: impl Into<String>,
content_digest: Option<String>,
) -> Self
pub fn new( provider_id: impl Into<String>, frame_id: impl Into<String>, content_digest: Option<String>, ) -> Self
Build an identity from its parts.
Sourcepub fn is_verifiable(&self) -> bool
pub fn is_verifiable(&self) -> bool
Whether this identity carries a content digest and can therefore be
revalidated by a context/verify request. A frame without one is
re-queried instead (docs/context-reuse.md §4).