pub struct Constructor {
pub source_name: String,
pub name: String,
pub arguments: Vec<NamedType>,
}Expand description
A custom type constructor.
Fields§
§source_name: StringExact canonical Morphir constructor FQName.
name: StringCanonical local constructor name.
arguments: Vec<NamedType>Constructor payload arguments.
Trait Implementations§
Source§impl Clone for Constructor
impl Clone for Constructor
Source§impl Debug for Constructor
impl Debug for Constructor
impl Eq for Constructor
Source§impl PartialEq for Constructor
impl PartialEq for Constructor
Source§impl Serialize for Constructor
impl Serialize for Constructor
impl StructuralPartialEq for Constructor
Auto Trait Implementations§
impl Freeze for Constructor
impl RefUnwindSafe for Constructor
impl Send for Constructor
impl Sync for Constructor
impl Unpin for Constructor
impl UnsafeUnpin for Constructor
impl UnwindSafe for Constructor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.