Skip to main content

SimpleTypeDefData

Struct SimpleTypeDefData 

Source
pub struct SimpleTypeDefData {
Show 17 fields pub name: Option<NameId>, pub target_namespace: Option<NameId>, pub variety: SimpleTypeVariety, pub base_type: Option<TypeRefResult>, pub item_type: Option<TypeRefResult>, pub member_types: Vec<TypeRefResult>, pub facets: FacetSet, pub final_derivation: DerivationSet, pub id: Option<String>, pub derivation_id: Option<String>, pub annotation: Option<Annotation>, pub source: Option<SourceRef>, pub resolved_base_type: Option<TypeKey>, pub resolved_item_type: Option<TypeKey>, pub resolved_member_types: Vec<TypeKey>, pub redefine_original: Option<SimpleTypeKey>, pub deferred_item_type_error: Option<DeferredSrcResolve>,
}
Expand description

Placeholder for SimpleTypeDef (defined in types/simple.rs)

Fields§

§name: Option<NameId>§target_namespace: Option<NameId>§variety: SimpleTypeVariety§base_type: Option<TypeRefResult>§item_type: Option<TypeRefResult>§member_types: Vec<TypeRefResult>§facets: FacetSet§final_derivation: DerivationSet§id: Option<String>§derivation_id: Option<String>§annotation: Option<Annotation>§source: Option<SourceRef>§resolved_base_type: Option<TypeKey>

Resolved base type key (for restriction derivation)

§resolved_item_type: Option<TypeKey>

Resolved item type key (for list types)

§resolved_member_types: Vec<TypeKey>

Resolved member type keys (for union types)

§redefine_original: Option<SimpleTypeKey>

Original simple type key before redefine (for base-type resolution)

§deferred_item_type_error: Option<DeferredSrcResolve>

Deferred src-resolve error for an xs:list itemType whose target is missing. Reported when this list type is used for validation.

Trait Implementations§

Source§

impl Debug for SimpleTypeDefData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MaybeSendSync for T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.