pub struct ForeignAttribute {
pub namespace: Option<NameId>,
pub local_name: NameId,
pub prefix: Option<NameId>,
pub value: String,
pub source: Option<SourceRef>,
}Expand description
Foreign attribute - a non-XSD attribute on a schema element
XSD allows arbitrary attributes from non-XSD namespaces on most elements. These are collected for extensibility (e.g., XSLT stylesheets, JAXB bindings).
Fields§
§namespace: Option<NameId>Qualified name of the attribute
local_name: NameId§prefix: Option<NameId>§value: StringAttribute value
source: Option<SourceRef>Source location
Implementations§
Trait Implementations§
Source§impl Clone for ForeignAttribute
impl Clone for ForeignAttribute
Source§fn clone(&self) -> ForeignAttribute
fn clone(&self) -> ForeignAttribute
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 ForeignAttribute
impl RefUnwindSafe for ForeignAttribute
impl Send for ForeignAttribute
impl Sync for ForeignAttribute
impl Unpin for ForeignAttribute
impl UnsafeUnpin for ForeignAttribute
impl UnwindSafe for ForeignAttribute
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