pub enum Payload<M = String> {
Empty,
Positional(Vec<TypeRef<M>>),
Named(Vec<Field<M>>),
}Expand description
What a constructor holds.
Variants§
Empty
Nothing.
Positional(Vec<TypeRef<M>>)
Values of these types, in order.
Named(Vec<Field<M>>)
These fields.
Trait Implementations§
impl<M: Eq> Eq for Payload<M>
impl<M: PartialEq> StructuralPartialEq for Payload<M>
Auto Trait Implementations§
impl<M> Forget for Payload<M>
impl<M> Freeze for Payload<M>
impl<M> Move for Payload<M>
impl<M> RefUnwindSafe for Payload<M>where
M: RefUnwindSafe,
impl<M> Send for Payload<M>
impl<M> Sync for Payload<M>
impl<M> Unpin for Payload<M>
impl<M> UnsafeUnpin for Payload<M>where
*const u8 is !null: UnsafeUnpin,
PhantomData<TypeRef<M>>: UnsafeUnpin,
PhantomData<Field<M>>: UnsafeUnpin,
impl<M> UnwindSafe for Payload<M>where
RawVecInner: UnwindSafe,
M: UnwindSafe,
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