Struct concordium_std::schema::ContractV2
source · [−]pub struct ContractV2 {
pub init: Option<FunctionV2>,
pub receive: BTreeMap<String, FunctionV2, Global>,
}
Expand description
Describes all the schemas of a V1 smart contract with a V2 schema. The Default instance produces an empty schema.
Fields
init: Option<FunctionV2>
receive: BTreeMap<String, FunctionV2, Global>
Trait Implementations
sourceimpl Clone for ContractV2
impl Clone for ContractV2
sourcefn clone(&self) -> ContractV2
fn clone(&self) -> ContractV2
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ContractV2
impl Debug for ContractV2
sourceimpl Default for ContractV2
impl Default for ContractV2
sourcefn default() -> ContractV2
fn default() -> ContractV2
Returns the “default value” for a type. Read more
sourceimpl Deserial for ContractV2
impl Deserial for ContractV2
sourcefn deserial<R>(source: &mut R) -> Result<ContractV2, ParseError> where
R: Read,
fn deserial<R>(source: &mut R) -> Result<ContractV2, ParseError> where
R: Read,
Attempt to read a structure from a given source, failing if an error occurs during deserialization or reading. Read more
sourceimpl PartialEq<ContractV2> for ContractV2
impl PartialEq<ContractV2> for ContractV2
sourcefn eq(&self, other: &ContractV2) -> bool
fn eq(&self, other: &ContractV2) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serial for ContractV2
impl Serial for ContractV2
impl Eq for ContractV2
impl StructuralEq for ContractV2
impl StructuralPartialEq for ContractV2
Auto Trait Implementations
impl RefUnwindSafe for ContractV2
impl Send for ContractV2
impl Sync for ContractV2
impl Unpin for ContractV2
impl UnwindSafe for ContractV2
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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