pub struct Node {Show 13 fields
pub min: u32,
pub max: Option<u32>,
pub types: BTreeSet<String>,
pub targets: BTreeSet<String>,
pub must_support: bool,
pub is_modifier: bool,
pub binding: Option<Binding>,
pub constraints: BTreeMap<String, Constraint>,
pub pattern: Option<Value>,
pub slicing: Option<Slicing>,
pub slices: BTreeMap<String, Node>,
pub children: BTreeMap<String, Node>,
pub extension_url: Option<String>,
}Expand description
One element of the effective tree.
Fields§
§min: u32§max: Option<u32>None is *.
types: BTreeSet<String>The element’s type, or for a choice element the types it may take.
targets: BTreeSet<String>Profiles a Reference (or canonical) may point to.
must_support: bool§is_modifier: bool§binding: Option<Binding>§constraints: BTreeMap<String, Constraint>§pattern: Option<Value>fixed[x] / pattern[x] value.
slicing: Option<Slicing>§slices: BTreeMap<String, Node>§children: BTreeMap<String, Node>§extension_url: Option<String>Canonical of the extension an extension slice holds.
Implementations§
Source§impl Node
impl Node
Sourcepub fn unconstrained() -> Self
pub fn unconstrained() -> Self
An element nothing constrains: what a missing slice or child is compared with.
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Forget for Node
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more