pub struct TypeContract {
pub name: &'static str,
/* private fields */
}Expand description
One type this crate declares, with its schema and its canonical values.
Fields§
§name: &'static strThe type’s own name, which is also its schema’s file name.
Implementations§
Trait Implementations§
Source§impl Clone for TypeContract
impl Clone for TypeContract
Source§fn clone(&self) -> TypeContract
fn clone(&self) -> TypeContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TypeContract
Auto Trait Implementations§
impl Freeze for TypeContract
impl RefUnwindSafe for TypeContract
impl Send for TypeContract
impl Sync for TypeContract
impl Unpin for TypeContract
impl UnsafeUnpin for TypeContract
impl UnwindSafe for TypeContract
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