Skip to main content

Crate nexcore_cargo

Crate nexcore_cargo 

Source
Expand description

§nexcore-cargo — Typed Transport for PV Rails

Separates cargo (typed domain payload) from freight (conveyance protocol).

In transportation: cargo refers to goods, freight refers to conveyance. In NexVigilant: cargo is PV domain data (signals, cases, assessments), freight is the MCP/microgram transport that moves it between stations.

§Core Concepts

ConceptTypeWhat It Does
CargoCargo traitTyped payload with provenance, destination, perishability
ProvenanceProvenanceWhere cargo originated (data source, query, confidence)
DestinationDestinationWhat safety decision cargo moves toward
PerishabilityPerishabilityReporting deadline — the cold-chain temperature
Station StampStationStampChain of custody record per processing hop
ContainerContainer<C>Transport wrapper with packing list
Freight RouteFreightRoutePlanned path through stations (bill of lading)

§Cold-Chain Principle

Perishability can upgrade during transit but never downgrade. A routine FAERS query starts as Periodic. Signal detection upgrades it to Prompt(90). Fatal causality assessment upgrades it to Expedited(15). The cargo’s urgency is discovered during transit, not known at loading.

§Layer Position

Foundation layer — depends on serde only. Consumed by domain crates (nexcore-vigilance), orchestration (nexcore-signal-pipeline), and service (nexcore-mcp).

Re-exports§

pub use cargo::Cargo;
pub use cargo::SimpleCargo;
pub use container::Container;
pub use container::PackingList;
pub use destination::Destination;
pub use perishability::Perishability;
pub use provenance::DataSource;
pub use provenance::Provenance;
pub use provenance::QueryParams;
pub use route::FreightRoute;
pub use route::Priority;
pub use route::Waypoint;
pub use stamp::CustodyChain;
pub use stamp::StationStamp;

Modules§

cargo
Cargo Trait — Typed Payload in Transit
container
Container — Typed Response Wrapper
destination
Destination — What Safety Decision Cargo Moves Toward
perishability
Perishability — The Cold-Chain Temperature of PV Cargo
provenance
Provenance — Where Cargo Originated
route
Freight Route — The Bill of Lading
stamp
Station Stamp — Chain of Custody