pub struct SourceInventory {
pub candidates: Vec<SourceCandidate>,
pub declined: Vec<DeclinedChannel>,
pub groups: Vec<String>,
pub instruments: Vec<SensorUpsert>,
}Expand description
Everything the source holds that could become a stream, whether or not the connector takes it.
discover_streams reports what a connector accepted, so a column it declined and a group it has
not discovered yet are invisible to every downstream check: no completeness window covers them,
no receipt names them, and reconciliation cannot speak about them at all. This is what a sign-off
against a retiring source has to read.
Taken channels are listed per group because that is the question being asked (is this station, whole, here); declined channels are listed once, source-wide, because a source declines a channel by its own rules and not per group.
Fields§
§candidates: Vec<SourceCandidate>One entry per channel the connector carries, keyed as it registers.
declined: Vec<DeclinedChannel>Channels the source holds and the connector does not carry, with the connector’s reason.
groups: Vec<String>Every group the source holds, so one with no channel at all is still named.
instruments: Vec<SensorUpsert>The source’s own instrument register, where it keeps one. These are instruments no stream
mints: a portal’s sensor_inventory is the answer to which probe, which serial, installed
when, and it goes with the portal unless it is admitted here.
Implementations§
Source§impl SourceInventory
impl SourceInventory
Sourcepub fn of_discovered(descriptors: &[StreamDescriptor]) -> Self
pub fn of_discovered(descriptors: &[StreamDescriptor]) -> Self
The inventory a backend that declines nothing has: every descriptor it discovered.
Trait Implementations§
Source§impl Clone for SourceInventory
impl Clone for SourceInventory
Source§fn clone(&self) -> SourceInventory
fn clone(&self) -> SourceInventory
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more