xsd_parser/models/data/constrains.rs
1use std::borrow::Cow;
2use std::ops::{Bound, Range};
3
4use crate::models::meta::Constrains;
5use crate::pipeline::renderer::ValueRendererBox;
6
7/// Code generator data for the constrains of a specific type.
8#[derive(Debug)]
9pub struct ConstrainsData<'types> {
10 /// Reference to the original constrains information.
11 pub meta: Cow<'types, Constrains>,
12
13 /// The the value should ne in as token stream literals.
14 pub range: Range<Bound<ValueRendererBox>>,
15}