pub enum ParsedSchemaNodeContent {
Show 13 variants
Any,
Text(TextSchema),
Integer(ParsedIntegerSchema),
Float(ParsedFloatSchema),
Boolean,
Null,
Literal(NodeId),
Array(ParsedArraySchema),
Map(ParsedMapSchema),
Record(ParsedRecordSchema),
Tuple(ParsedTupleSchema),
Union(ParsedUnionSchema),
Reference(TypeReference),
}Expand description
Parsed schema node content - the type definition with NodeId references.
Variants§
Any
Any type - accepts any valid Eure value
Text(TextSchema)
Text type with constraints
Integer(ParsedIntegerSchema)
Integer type with constraints
Float(ParsedFloatSchema)
Float type with constraints
Boolean
Boolean type (no constraints)
Null
Null type
Literal(NodeId)
Literal type - accepts only the exact specified value (NodeId to the literal)
Array(ParsedArraySchema)
Array type with item schema
Map(ParsedMapSchema)
Map type with dynamic keys
Record(ParsedRecordSchema)
Record type with fixed named fields
Tuple(ParsedTupleSchema)
Tuple type with fixed-length ordered elements
Union(ParsedUnionSchema)
Union type with named variants
Reference(TypeReference)
Type reference
Trait Implementations§
Source§impl Clone for ParsedSchemaNodeContent
impl Clone for ParsedSchemaNodeContent
Source§fn clone(&self) -> ParsedSchemaNodeContent
fn clone(&self) -> ParsedSchemaNodeContent
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 ParsedSchemaNodeContent
impl Debug for ParsedSchemaNodeContent
Source§impl FromEure<'_> for ParsedSchemaNodeContent
impl FromEure<'_> for ParsedSchemaNodeContent
Source§type Error = ParseError
type Error = ParseError
The error type returned by parsing.
Auto Trait Implementations§
impl Freeze for ParsedSchemaNodeContent
impl RefUnwindSafe for ParsedSchemaNodeContent
impl Send for ParsedSchemaNodeContent
impl Sync for ParsedSchemaNodeContent
impl Unpin for ParsedSchemaNodeContent
impl UnwindSafe for ParsedSchemaNodeContent
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