pub struct ElementDecl {
pub name: String,
pub type_name: Option<QName>,
pub inline_type: Option<Box<ComplexType>>,
}Expand description
Represents an element declaration in the schema, which can be either a global element or an inline element declaration inside a compositor.
Fields§
§name: StringThe name of the element.
type_name: Option<QName>The type of the element, if specified.
inline_type: Option<Box<ComplexType>>The inline complex type of the element, if specified.
Trait Implementations§
Source§impl Clone for ElementDecl
impl Clone for ElementDecl
Source§fn clone(&self) -> ElementDecl
fn clone(&self) -> ElementDecl
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 moreSource§impl Debug for ElementDecl
impl Debug for ElementDecl
impl Eq for ElementDecl
Source§impl PartialEq for ElementDecl
impl PartialEq for ElementDecl
impl StructuralPartialEq for ElementDecl
Auto Trait Implementations§
impl Freeze for ElementDecl
impl RefUnwindSafe for ElementDecl
impl Send for ElementDecl
impl Sync for ElementDecl
impl Unpin for ElementDecl
impl UnsafeUnpin for ElementDecl
impl UnwindSafe for ElementDecl
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.