pub struct AttributeGroupDef {
pub name: Option<NameId>,
pub target_namespace: Option<NameId>,
pub source: Option<SourceRef>,
pub attributes: Vec<AttributeUse>,
pub attribute_group_refs: Vec<AttributeGroupRef>,
pub attribute_wildcard: Option<AttributeWildcard>,
pub id: Option<String>,
}Expand description
Attribute group definition (xs:attributeGroup)
Represents a reusable collection of attribute declarations and wildcards.
Fields§
§name: Option<NameId>Group name (required for global groups)
target_namespace: Option<NameId>Target namespace
source: Option<SourceRef>Source location for error reporting
attributes: Vec<AttributeUse>Attribute uses in this group
attribute_group_refs: Vec<AttributeGroupRef>Attribute group references
attribute_wildcard: Option<AttributeWildcard>Attribute wildcard (anyAttribute)
id: Option<String>ID attribute value
Implementations§
Source§impl AttributeGroupDef
impl AttributeGroupDef
Sourcepub fn add_attribute(&mut self, attr_use: AttributeUse)
pub fn add_attribute(&mut self, attr_use: AttributeUse)
Add an attribute use to this group
Sourcepub fn add_attribute_group_ref(&mut self, ref_: AttributeGroupRef)
pub fn add_attribute_group_ref(&mut self, ref_: AttributeGroupRef)
Add an attribute group reference
Trait Implementations§
Source§impl Clone for AttributeGroupDef
impl Clone for AttributeGroupDef
Source§fn clone(&self) -> AttributeGroupDef
fn clone(&self) -> AttributeGroupDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AttributeGroupDef
impl RefUnwindSafe for AttributeGroupDef
impl Send for AttributeGroupDef
impl Sync for AttributeGroupDef
impl Unpin for AttributeGroupDef
impl UnsafeUnpin for AttributeGroupDef
impl UnwindSafe for AttributeGroupDef
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