pub struct ElementInfo {
pub ident: Ident,
pub type_: Ident,
pub min_occurs: MinOccurs,
pub max_occurs: MaxOccurs,
pub element_mode: ElementMode,
pub display_name: Option<String>,
}Expand description
Type information that contains data about a element.
Fields§
§ident: IdentIdentifier of the element.
type_: IdentType of the element.
min_occurs: MinOccursMinimum occurrence of the field.
max_occurs: MaxOccursMaximum occurrence of the field.
element_mode: ElementModeMode of the element.
display_name: Option<String>Name of the element to use inside the generated code.
Implementations§
Source§impl ElementInfo
impl ElementInfo
Sourcepub fn new(ident: Ident, type_: Ident, element_mode: ElementMode) -> Self
pub fn new(ident: Ident, type_: Ident, element_mode: ElementMode) -> Self
Create a new ElementInfo instance from the passed name, type_
and element_mode.
Trait Implementations§
Source§impl Clone for ElementInfo
impl Clone for ElementInfo
Source§fn clone(&self) -> ElementInfo
fn clone(&self) -> ElementInfo
Returns a copy of the value. Read more
1.0.0 · 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 ElementInfo
impl Debug for ElementInfo
Source§impl TypeEq for ElementInfo
impl TypeEq for ElementInfo
Source§fn type_hash<H: Hasher>(&self, hasher: &mut H, types: &Types)
fn type_hash<H: Hasher>(&self, hasher: &mut H, types: &Types)
Feeds this value into the given
Hasher.Source§fn type_eq(&self, other: &Self, types: &Types) -> bool
fn type_eq(&self, other: &Self, types: &Types) -> bool
Check if this instance is equal to the
other instance using the passed
types to resolve identifiers.Source§fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &Types)
fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &Types)
Feeds a slice of this value into the given
Hasher.Source§fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &Types) -> boolwhere
Self: 'a,
X: IntoIterator<Item = &'a Self>,
Y: IntoIterator<Item = &'a Self>,
fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &Types) -> boolwhere
Self: 'a,
X: IntoIterator<Item = &'a Self>,
Y: IntoIterator<Item = &'a Self>,
Check if the two passed iterators contain type equal elements.
Auto Trait Implementations§
impl Freeze for ElementInfo
impl RefUnwindSafe for ElementInfo
impl Send for ElementInfo
impl Sync for ElementInfo
impl Unpin for ElementInfo
impl UnwindSafe for ElementInfo
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