pub struct AttributeUse {
pub attribute: AttributeRef,
pub use_kind: AttributeUseKind,
pub default_value: Option<String>,
pub fixed_value: Option<String>,
pub inheritable: bool,
pub source: Option<SourceRef>,
}Expand description
Attribute use (attribute declaration with use constraints)
Fields§
§attribute: AttributeRefThe attribute declaration
use_kind: AttributeUseKindUse requirement
default_value: Option<String>Default value (mutually exclusive with fixed)
fixed_value: Option<String>Fixed value (mutually exclusive with default)
inheritable: boolInheritable (XSD 1.1 §3.2.6, §3.3.5.6)
source: Option<SourceRef>Source location
Trait Implementations§
Source§impl Clone for AttributeUse
impl Clone for AttributeUse
Source§fn clone(&self) -> AttributeUse
fn clone(&self) -> AttributeUse
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 AttributeUse
impl RefUnwindSafe for AttributeUse
impl Send for AttributeUse
impl Sync for AttributeUse
impl Unpin for AttributeUse
impl UnsafeUnpin for AttributeUse
impl UnwindSafe for AttributeUse
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