pub struct NewType {
pub name: String,
pub inner: FieldType,
}
Expand description
A newtype struct (e.g. struct SomeId(String)
)
These are usually represented as their inner type when serialized.
Fields§
§name: String
The name of the struct in rust.
inner: FieldType
The type contained within the newtype.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewType
impl RefUnwindSafe for NewType
impl Send for NewType
impl Sync for NewType
impl Unpin for NewType
impl UnwindSafe for NewType
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