pub struct EditionInclusion {
pub kind: ComponentKind,
pub component_id: Id,
pub since: EditionId,
pub required_vortex_release: Option<&'static str>,
}Expand description
Declares that a serialized component is a member of an edition — and of every later edition of
the same family. Registered with EditionSession::declare_inclusion.
Fields§
§kind: ComponentKindWhat the membership covers. Ids are unique per kind, so this is part of the member’s identity, not a label.
component_id: IdThe interned component id, e.g. vortex.alp.
since: EditionIdThe first edition this component is a member of.
required_vortex_release: Option<&'static str>The earliest Vortex release supporting this member, recorded from evidence (e.g.
compat-fixture history for serialized components). None until recorded.
Implementations§
Source§impl EditionInclusion
impl EditionInclusion
Sourcepub fn new<C: AsComponentId + ?Sized>(
kind: ComponentKind,
component: &C,
since: EditionId,
) -> Self
pub fn new<C: AsComponentId + ?Sized>( kind: ComponentKind, component: &C, since: EditionId, ) -> Self
Declare that a component of kind is a member of since and every later edition of
the same family. The component can be named by id string or by vtable.
Sourcepub fn array<C: AsComponentId + ?Sized>(encoding: &C, since: EditionId) -> Self
pub fn array<C: AsComponentId + ?Sized>(encoding: &C, since: EditionId) -> Self
Declare that an array encoding is a member of since and every later edition of the
same family.
Sourcepub fn dtype<C: AsComponentId + ?Sized>(dtype: &C, since: EditionId) -> Self
pub fn dtype<C: AsComponentId + ?Sized>(dtype: &C, since: EditionId) -> Self
Declare that an extension dtype is a member of since and every later edition of the
same family.
Sourcepub fn validate(&self) -> VortexResult<()>
pub fn validate(&self) -> VortexResult<()>
Validate the declaration’s form: a lowercase namespace.name component id and, if
recorded, a well-formed major.minor.patch release. Checked for every declared
inclusion by EditionSession::validate.
Trait Implementations§
Source§impl Clone for EditionInclusion
impl Clone for EditionInclusion
Source§fn clone(&self) -> EditionInclusion
fn clone(&self) -> EditionInclusion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more