pub struct AttributeDecl {
pub name: QName,
pub type_def: Arc<SimpleType>,
pub default: Option<String>,
pub fixed: Option<String>,
pub inheritable: bool,
}Expand description
<xs:attribute> — top-level or local.
Fields§
§name: QName§type_def: Arc<SimpleType>Always a simple type per spec.
default: Option<String>§fixed: Option<String>§inheritable: boolXSD 1.1 § 3.2.2 — when true, this attribute’s value is
inherited into descendant elements’ assertion / conditional-
type-assignment contexts. Default is false. Today’s
validator records the flag for forward compatibility; it has
no observable effect until xs:assert / xs:alternative
land (those consume inherited attributes via the dynamic
XPath context). Compiling a schema with inheritable="true"
requires SchemaVersion::Xsd11.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttributeDecl
impl RefUnwindSafe for AttributeDecl
impl Send for AttributeDecl
impl Sync for AttributeDecl
impl Unpin for AttributeDecl
impl UnsafeUnpin for AttributeDecl
impl UnwindSafe for AttributeDecl
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