pub struct AttrDef {
pub xml_name: String,
pub rust_name: String,
pub type_ref: TypeRef,
pub required: bool,
}Expand description
A single XML attribute inside a ValueWithAttrDef.
Fields§
§xml_name: StringOriginal XML attribute name (e.g. "Ccy").
rust_name: Stringsnake_case Rust field name (e.g. "ccy").
type_ref: TypeRefResolved type reference.
required: boolWhether use="required" was specified on the attribute.
Trait Implementations§
impl StructuralPartialEq for AttrDef
Auto Trait Implementations§
impl Freeze for AttrDef
impl RefUnwindSafe for AttrDef
impl Send for AttrDef
impl Sync for AttrDef
impl Unpin for AttrDef
impl UnsafeUnpin for AttrDef
impl UnwindSafe for AttrDef
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