xsd-parser 1.5.2

Rust code generator for XML schema files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::borrow::Cow;
use std::ops::{Bound, Range};

use crate::models::meta::Constrains;
use crate::pipeline::renderer::ValueRendererBox;

/// Code generator data for the constrains of a specific type.
#[derive(Debug)]
pub struct ConstrainsData<'types> {
    /// Reference to the original constrains information.
    pub meta: Cow<'types, Constrains>,

    /// The the value should ne in as token stream literals.
    pub range: Range<Bound<ValueRendererBox>>,
}