pub struct Container {
pub name: NameId,
pub qualified_name: NameId,
pub space_system: SpaceSystemId,
pub is_abstract: bool,
pub base: Option<ContainerId>,
pub is_command: bool,
pub command: Option<MetaCommandId>,
pub restriction: Vec<MatchCriteria>,
pub entries: Span,
pub inheritors: Vec<ContainerId>,
pub short_description: Option<NameId>,
pub long_description: Option<NameId>,
}Expand description
A <xtce:SequenceContainer>.
Fields§
§name: NameIdContainer name as written.
qualified_name: NameIdFully qualified name.
space_system: SpaceSystemIdThe space system that owns this definition.
is_abstract: boolabstract="true": the container may not be the final match for a packet.
base: Option<ContainerId>The container this one extends, from <BaseContainer containerRef=..>.
is_command: boolWhether this container came from <CommandMetaData> rather than the telemetry half.
True for a MetaCommand’s own <CommandContainer> and for a shared one in a
<CommandContainerSet>. It is what root selection needs: a telecommand is not a packet
to decode by default, whoever owns it.
command: Option<MetaCommandId>The telecommand this container packs, when it is a <CommandContainer>.
None for a telemetry container — and also for a shared one in a
<CommandContainerSet>, which is a telecommand’s packaging but belongs to no single
command. Self::is_command is the question to ask about the half of the document
a container came from; this one is the question about ownership.
restriction: Vec<MatchCriteria>Criteria under which this container specialises Self::base. All must hold.
entries: SpanThis container’s own entries, as a span of crate::XtceDb::entries.
Entries live in one shared arena so that decoding a container walks a contiguous
slice rather than chasing a per-container Vec.
inheritors: Vec<ContainerId>Containers that name this one as their base, in document order.
Filled during resolution. Decoding descends this list, which is the direction the reference implementation walks and the direction packets are actually discriminated.
short_description: Option<NameId>shortDescription, if present.
long_description: Option<NameId><LongDescription>, if present.