Struct ink_metadata::ContractSpec
source · [−]Expand description
Describes a contract.
Implementations
sourceimpl<F> ContractSpec<F>where
F: Form,
impl<F> ContractSpec<F>where
F: Form,
sourcepub fn constructors(&self) -> &[ConstructorSpec<F>]
pub fn constructors(&self) -> &[ConstructorSpec<F>]
Returns the set of constructors of the contract.
sourcepub fn messages(&self) -> &[MessageSpec<F>]
pub fn messages(&self) -> &[MessageSpec<F>]
Returns the external messages of the contract.
sourceimpl ContractSpec
impl ContractSpec
sourcepub fn new() -> ContractSpecBuilder
pub fn new() -> ContractSpecBuilder
Creates a new contract specification.
Trait Implementations
sourceimpl<'de, F: Form> Deserialize<'de> for ContractSpec<F>where
F::Type: DeserializeOwned,
F::String: DeserializeOwned,
impl<'de, F: Form> Deserialize<'de> for ContractSpec<F>where
F::Type: DeserializeOwned,
F::String: DeserializeOwned,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl IntoPortable for ContractSpec
impl IntoPortable for ContractSpec
type Output = ContractSpec<PortableForm>
type Output = ContractSpec<PortableForm>
The portable version of
Self
.sourcefn into_portable(self, registry: &mut Registry) -> Self::Output
fn into_portable(self, registry: &mut Registry) -> Self::Output
Convert
self
to the portable form by using the registry for caching.sourceimpl<F: PartialEq + Form> PartialEq<ContractSpec<F>> for ContractSpec<F>where
F::String: PartialEq,
impl<F: PartialEq + Form> PartialEq<ContractSpec<F>> for ContractSpec<F>where
F::String: PartialEq,
sourcefn eq(&self, other: &ContractSpec<F>) -> bool
fn eq(&self, other: &ContractSpec<F>) -> bool
impl<F: Eq + Form> Eq for ContractSpec<F>where
F::String: Eq,
impl<F: Form> StructuralEq for ContractSpec<F>
impl<F: Form> StructuralPartialEq for ContractSpec<F>
Auto Trait Implementations
impl<F> RefUnwindSafe for ContractSpec<F>where
<F as Form>::String: RefUnwindSafe,
<F as Form>::Type: RefUnwindSafe,
impl<F> Send for ContractSpec<F>where
<F as Form>::String: Send,
<F as Form>::Type: Send,
impl<F> Sync for ContractSpec<F>where
<F as Form>::String: Sync,
<F as Form>::Type: Sync,
impl<F> Unpin for ContractSpec<F>where
<F as Form>::String: Unpin,
<F as Form>::Type: Unpin,
impl<F> UnwindSafe for ContractSpec<F>where
<F as Form>::String: UnwindSafe,
<F as Form>::Type: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more