xsd_parser/models/data/constrains.rs
1use std::ops::{Bound, Range};
2
3use proc_macro2::TokenStream;
4
5use crate::models::meta::Constrains;
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: &'types Constrains,
12
13 /// The the value should ne in as token stream literals.
14 pub range: Range<Bound<TokenStream>>,
15}