pub struct Edition {
pub id: EditionId,
pub immutable: bool,
pub min_library_version: Option<&'static str>,
}Expand description
An edition: a named set of serialized components that can acquire a read-compatibility
guarantee, registered with EditionSession::declare_edition.
The set itself is computed from the registered EditionInclusions by
EditionSession::components_in.
Fields§
§id: EditionIdThe edition identifier. For a core edition, its date records when it freezes.
immutable: boolWhether this edition becomes immutable when it freezes. An edition that is not immutable,
such as UNSTABLE, never freezes and stays a draft, so its members can always change or
be removed.
min_library_version: Option<&'static str>The minimum version of the edition family’s EditionFamily::origin whose reader
supports every member of this edition. Always None for an edition that never freezes.
A stable edition may freeze in the release that cuts it. Until that release is cut, its
version is not known and this remains None. The version is then backfilled to document
the already completed freeze and identify the first released reader supporting every
member. A draft has no recorded read-forever guarantee; that does not imply that its
behavior is expected to change.
Validated against the members’ EditionInclusion::required_vortex_release values:
no member may require a version newer than the edition declares.