pub struct ParsedUnionSchema {
pub variants: IndexMap<String, NodeId>,
pub unambiguous: IndexSet<String>,
pub repr: VariantRepr,
pub deny_untagged: IndexSet<String>,
}Expand description
Parsed union schema with NodeId references.
Fields§
§variants: IndexMap<String, NodeId>Variant definitions (variant name -> schema NodeId)
unambiguous: IndexSet<String>Variants that use unambiguous semantics (try all, detect conflicts). All other variants use short-circuit semantics (first match wins).
repr: VariantReprVariant representation strategy
deny_untagged: IndexSet<String>Variants that deny untagged matching (require explicit $variant)
Trait Implementations§
Source§impl Clone for ParsedUnionSchema
impl Clone for ParsedUnionSchema
Source§fn clone(&self) -> ParsedUnionSchema
fn clone(&self) -> ParsedUnionSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedUnionSchema
impl Debug for ParsedUnionSchema
Source§impl FromEure<'_> for ParsedUnionSchema
impl FromEure<'_> for ParsedUnionSchema
Source§type Error = ParseError
type Error = ParseError
The error type returned by parsing.
Auto Trait Implementations§
impl Freeze for ParsedUnionSchema
impl RefUnwindSafe for ParsedUnionSchema
impl Send for ParsedUnionSchema
impl Sync for ParsedUnionSchema
impl Unpin for ParsedUnionSchema
impl UnwindSafe for ParsedUnionSchema
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
Mutably borrows from an owned value. Read more