pub struct Particle {
pub name: String,
pub occurs: Occurs,
pub content: Box<Content>,
pub attributes: Vec<AttributeDecl>,
pub fixed: Option<String>,
pub nillable: bool,
pub wildcard: Option<Wildcard>,
pub any_attribute: Option<Wildcard>,
pub identities: Vec<Identity>,
}Expand description
An element declaration within a content model.
Fields§
§name: StringThe element’s local name.
occurs: OccursHow many times it may occur.
content: Box<Content>What it may contain.
attributes: Vec<AttributeDecl>Its attribute declarations.
fixed: Option<String>@fixed — the element’s content must equal this exactly.
nillable: bool@nillable — xsi:nil="true" may stand in for content.
wildcard: Option<Wildcard>When set, this particle is an xs:any wildcard rather than a
named element, and Particle::name is empty.
any_attribute: Option<Wildcard>xs:anyAttribute on this element’s type, if it has one.
identities: Vec<Identity>xs:unique, xs:key and xs:keyref declared on this element.
Trait Implementations§
impl StructuralPartialEq for Particle
Auto Trait Implementations§
impl Freeze for Particle
impl RefUnwindSafe for Particle
impl Send for Particle
impl Sync for Particle
impl Unpin for Particle
impl UnsafeUnpin for Particle
impl UnwindSafe for Particle
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