PTWM
transcode

ptwm_core::transcode::manifest

Serde data model for the canonical PTWM-JSON manifest (Layer 1).

ptwm_core::transcode::manifest

Serde data model for the canonical PTWM-JSON manifest (Layer 1).

rsmod

ptwm_core::transcode::manifest

crates/ptwm-core/src/transcode/manifest.rs:1
mod manifest

Serde data model for the canonical PTWM-JSON manifest (Layer 1).

These structs are a lossless projection of the binary `.ptwm` wire format. Every field needed to reconstruct the container byte-for-byte is captured; large/opaque binaries (compressed plane payloads, externalized codec state, embedded modules) are referenced by member key and live outside the JSON. The registry manifest has one form per container layout: [`RegistryManifest`] for the legacy layout and [`CompactRegistryManifest`] for the compact one. Per-tensor manifests ([`TensorManifest`]) are shared. The schema restricts scalars to integers, strings, booleans, and `null`; opaque byte fields are carried as base64 (`*_b64`). See `super::jcs` for the canonicalization that makes manifest hashes reproducible.
rstype

ptwm_core::transcode::manifest::ChainEntry

crates/ptwm-core/src/transcode/manifest.rs:159
pub struct ChainEntry
rstype

ptwm_core::transcode::manifest::ChainSpec

crates/ptwm-core/src/transcode/manifest.rs:223
pub struct ChainSpec
rstype

ptwm_core::transcode::manifest::ChunkJson

crates/ptwm-core/src/transcode/manifest.rs:290
pub struct ChunkJson
rstype

ptwm_core::transcode::manifest::CodecEntry

crates/ptwm-core/src/transcode/manifest.rs:133
pub struct CodecEntry
rstype

ptwm_core::transcode::manifest::CompactContainerFlags

crates/ptwm-core/src/transcode/manifest.rs:86
pub struct CompactContainerFlags
rstype

ptwm_core::transcode::manifest::CompactRegistry

crates/ptwm-core/src/transcode/manifest.rs:95
pub struct CompactRegistry
rstype

ptwm_core::transcode::manifest::CompactRegistryManifest

crates/ptwm-core/src/transcode/manifest.rs:77
pub struct CompactRegistryManifest

Archive-scoped registry manifest of a compact-layout (`\x89PTWC`) container: `ptwm_format` [`PTWM_MANIFEST_FORMAT_COMPACT`], `manifest_version` [`MANIFEST_VERSION_COMPACT`].

It lists the Extension Table entry by entry instead of carrying its hash, because the compact table is rebuilt from that list. Per-tensor manifests are [`TensorManifest`]s, as for the legacy layout.
rstype

ptwm_core::transcode::manifest::ContainerFlags

crates/ptwm-core/src/transcode/manifest.rs:43
pub struct ContainerFlags
rstype

ptwm_core::transcode::manifest::DependencyJson

crates/ptwm-core/src/transcode/manifest.rs:235
pub struct DependencyJson
rstype

ptwm_core::transcode::manifest::EdgeJson

crates/ptwm-core/src/transcode/manifest.rs:176
pub struct EdgeJson
rstype

ptwm_core::transcode::manifest::ExtensionEntryJson

crates/ptwm-core/src/transcode/manifest.rs:111
pub enum ExtensionEntryJson

One compact Extension Table entry (see [`crate::extension::compact_table`]). Serialized as a one-key object: `{"op": u16}`, `{"codec": u16}`, `{"named": str}` or `{"full_b64": str}`.

rstype

ptwm_core::transcode::manifest::ExternalStateJson

crates/ptwm-core/src/transcode/manifest.rs:281
pub struct ExternalStateJson
rsconst

ptwm_core::transcode::manifest::LAYOUT_COMPACT

crates/ptwm-core/src/transcode/manifest.rs:25
pub const LAYOUT_COMPACT

`container_flags.layout` of a compact-layout registry manifest.

rsconst

ptwm_core::transcode::manifest::MANIFEST_VERSION

crates/ptwm-core/src/transcode/manifest.rs:19
pub const MANIFEST_VERSION
rsconst

ptwm_core::transcode::manifest::MANIFEST_VERSION_COMPACT

crates/ptwm-core/src/transcode/manifest.rs:23
pub const MANIFEST_VERSION_COMPACT

`manifest_version` of a compact-layout registry manifest.

rstype

ptwm_core::transcode::manifest::NodeJson

crates/ptwm-core/src/transcode/manifest.rs:168
pub struct NodeJson
rstype

ptwm_core::transcode::manifest::OpEntry

crates/ptwm-core/src/transcode/manifest.rs:124
pub struct OpEntry
rstype

ptwm_core::transcode::manifest::PlaneJson

crates/ptwm-core/src/transcode/manifest.rs:243
pub struct PlaneJson
rsconst

ptwm_core::transcode::manifest::PTWM_MANIFEST_FORMAT

crates/ptwm-core/src/transcode/manifest.rs:18
pub const PTWM_MANIFEST_FORMAT
rsconst

ptwm_core::transcode::manifest::PTWM_MANIFEST_FORMAT_COMPACT

crates/ptwm-core/src/transcode/manifest.rs:21
pub const PTWM_MANIFEST_FORMAT_COMPACT

`ptwm_format` of a compact-layout (`\x89PTWC`) registry manifest.

rstype

ptwm_core::transcode::manifest::Registry

crates/ptwm-core/src/transcode/manifest.rs:56
pub struct Registry
rstype

ptwm_core::transcode::manifest::RegistryManifest

crates/ptwm-core/src/transcode/manifest.rs:32
pub struct RegistryManifest

Archive-scoped registry manifest. Lifts the binary `extension_table` and `shared_prelude` to archive scope so codecs/ops/codebooks/chains are defined once and referenced by id.

rstype

ptwm_core::transcode::manifest::SharedStateEntry

crates/ptwm-core/src/transcode/manifest.rs:145
pub struct SharedStateEntry
rstype

ptwm_core::transcode::manifest::TensorManifest

crates/ptwm-core/src/transcode/manifest.rs:199
pub struct TensorManifest

Per-tensor manifest — a direct projection of `TensorRecord`.

rstype

ptwm_core::transcode::manifest::TerminalJson

crates/ptwm-core/src/transcode/manifest.rs:187
pub struct TerminalJson