pub struct ImportEnvelope {
pub envelope_id: EnvelopeId,
pub schema_version: String,
pub content_digest: String,
pub source_authority: String,
pub trace_id: Option<TraceId>,
pub namespace: String,
pub records: Vec<ImportRecord>,
}Expand description
An import envelope containing projection records to be atomically ingested.
§Phase status: compatibility / migration-only
This type is the V10 legacy import format. New integrations should use
MemoryStore::import_projection_batch() with ProjectionImportBatchV3
from forge-memory-bridge.
Removal condition: removed when all callers migrate to the bridge pipeline.
The envelope is the unit of atomicity: all records are committed together or the entire import is rolled back.
Fields§
§envelope_id: EnvelopeIdUnique envelope identity (assigned by source authority).
schema_version: StringSchema version of the export format.
content_digest: StringContent digest (e.g. blake3 hash) for deduplication.
Which system produced this envelope (e.g. “forge”, “external”).
trace_id: Option<TraceId>Cross-crate trace identifier for auditability.
namespace: StringTarget namespace for all records in this envelope.
records: Vec<ImportRecord>The projection records to import.
Implementations§
Source§impl ImportEnvelope
impl ImportEnvelope
Sourcepub fn validate(&self) -> Result<(), MemoryError>
pub fn validate(&self) -> Result<(), MemoryError>
Validate envelope structure. Returns an error if the envelope is malformed.
Trait Implementations§
Source§impl Clone for ImportEnvelope
impl Clone for ImportEnvelope
Source§fn clone(&self) -> ImportEnvelope
fn clone(&self) -> ImportEnvelope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more