Struct concordium_std::schema::ContractV1
source · pub struct ContractV1 {
pub init: Option<FunctionV1>,
pub receive: BTreeMap<String, FunctionV1, Global>,
}
Expand description
Describes all the schemas of a V1 smart contract.
The Default
instance produces an empty schema.
Fields§
§init: Option<FunctionV1>
§receive: BTreeMap<String, FunctionV1, Global>
Trait Implementations§
source§impl Clone for ContractV1
impl Clone for ContractV1
source§fn clone(&self) -> ContractV1
fn clone(&self) -> ContractV1
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ContractV1
impl Debug for ContractV1
source§impl Default for ContractV1
impl Default for ContractV1
source§fn default() -> ContractV1
fn default() -> ContractV1
Returns the “default value” for a type. Read more
source§impl Deserial for ContractV1
impl Deserial for ContractV1
source§fn deserial<R>(source: &mut R) -> Result<ContractV1, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<ContractV1, ParseError>where
R: Read,
Attempt to read a structure from a given source, failing if an error
occurs during deserialization or reading.
source§impl PartialEq<ContractV1> for ContractV1
impl PartialEq<ContractV1> for ContractV1
source§fn eq(&self, other: &ContractV1) -> bool
fn eq(&self, other: &ContractV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.