pub struct EnumerationMetaVariant {
pub ident: Ident,
pub use_: Use,
pub type_: Option<Ident>,
pub display_name: Option<String>,
pub documentation: Vec<String>,
}
Expand description
Type information that defines variants of an EnumerationMeta
.
Fields§
§ident: Ident
Identifier of the variant.
use_: Use
Use of the variant.
type_: Option<Ident>
Type of the variant.
display_name: Option<String>
Name of the variant to use inside the generated code.
documentation: Vec<String>
Documentation of the type extracted from xs:documentation
nodes.
Implementations§
Trait Implementations§
Source§impl Clone for EnumerationMetaVariant
impl Clone for EnumerationMetaVariant
Source§fn clone(&self) -> EnumerationMetaVariant
fn clone(&self) -> EnumerationMetaVariant
Returns a duplicate 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 EnumerationMetaVariant
impl Debug for EnumerationMetaVariant
Source§impl TypeEq for EnumerationMetaVariant
impl TypeEq for EnumerationMetaVariant
Source§fn type_hash<H: Hasher>(&self, hasher: &mut H, types: &MetaTypes)
fn type_hash<H: Hasher>(&self, hasher: &mut H, types: &MetaTypes)
Feeds this value into the given
Hasher
.Source§fn type_eq(&self, other: &Self, types: &MetaTypes) -> bool
fn type_eq(&self, other: &Self, types: &MetaTypes) -> 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: &MetaTypes)
fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &MetaTypes)
Feeds a slice of this value into the given
Hasher
.Source§fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &MetaTypes) -> 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: &MetaTypes) -> 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 EnumerationMetaVariant
impl RefUnwindSafe for EnumerationMetaVariant
impl Send for EnumerationMetaVariant
impl Sync for EnumerationMetaVariant
impl Unpin for EnumerationMetaVariant
impl UnwindSafe for EnumerationMetaVariant
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