pub enum GldfSchemaVersion {
Rc3,
Rc4,
}Expand description
Target GLDF schema revision when serializing a GldfProduct.
rc.4 introduced backwards-compatible spelling fixes (the corrected
RatedChromaticityCoordinateValues element name and Fluorescent
enum values), keeping the old forms as deprecated aliases. The
internal model always stores the rc.4-correct form; this enum picks
which spelling lands in the output XML so producers can keep shipping
rc.3-validating files until consumers catch up.
Variants§
Rc3
Output the rc.3 spellings (RatedChromacityCoordinateValues,
Flourescent Triphosphor, Flourescent Halophosphate). Use this
for compatibility with consumers pinned to the pre-rc.4 schema.
Rc4
Output the rc.4-corrected spellings. This is the default and validates against both rc.4 and rc.3 (rc.4 keeps the old forms as deprecated aliases, but the corrected forms are also accepted by older consumers since the deprecation runs the other way).
Trait Implementations§
Source§impl Clone for GldfSchemaVersion
impl Clone for GldfSchemaVersion
Source§fn clone(&self) -> GldfSchemaVersion
fn clone(&self) -> GldfSchemaVersion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for GldfSchemaVersion
Source§impl Debug for GldfSchemaVersion
impl Debug for GldfSchemaVersion
Source§impl Default for GldfSchemaVersion
impl Default for GldfSchemaVersion
Source§fn default() -> GldfSchemaVersion
fn default() -> GldfSchemaVersion
impl Eq for GldfSchemaVersion
Source§impl PartialEq for GldfSchemaVersion
impl PartialEq for GldfSchemaVersion
impl StructuralPartialEq for GldfSchemaVersion
Auto Trait Implementations§
impl Freeze for GldfSchemaVersion
impl RefUnwindSafe for GldfSchemaVersion
impl Send for GldfSchemaVersion
impl Sync for GldfSchemaVersion
impl Unpin for GldfSchemaVersion
impl UnsafeUnpin for GldfSchemaVersion
impl UnwindSafe for GldfSchemaVersion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.