pub struct NewtypeDef {
pub name: String,
pub inner: RustType,
pub constraints: Vec<Constraint>,
}Expand description
A newtype wrapping a primitive type with optional validation constraints.
Generated from xs:simpleType restrictions that do not consist solely
of xs:enumeration facets.
Fields§
§name: StringThe Rust struct name.
inner: RustTypeThe wrapped primitive Rust type.
constraints: Vec<Constraint>Zero or more constraints derived from XSD facets.
Trait Implementations§
Source§impl Clone for NewtypeDef
impl Clone for NewtypeDef
Source§fn clone(&self) -> NewtypeDef
fn clone(&self) -> NewtypeDef
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 NewtypeDef
impl Debug for NewtypeDef
Source§impl PartialEq for NewtypeDef
impl PartialEq for NewtypeDef
impl StructuralPartialEq for NewtypeDef
Auto Trait Implementations§
impl Freeze for NewtypeDef
impl RefUnwindSafe for NewtypeDef
impl Send for NewtypeDef
impl Sync for NewtypeDef
impl Unpin for NewtypeDef
impl UnsafeUnpin for NewtypeDef
impl UnwindSafe for NewtypeDef
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