Struct concordium_std::schema::FunctionV2
source · pub struct FunctionV2 {
pub parameter: Option<Type>,
pub return_value: Option<Type>,
pub error: Option<Type>,
}
Expand description
Describes the schema of an init or a receive function for V1 contracts with
V3 schemas. Differs from FunctionV1
in that a schema for the error can
be included.
Fields§
§parameter: Option<Type>
§return_value: Option<Type>
§error: Option<Type>
Implementations§
Trait Implementations§
source§impl Clone for FunctionV2
impl Clone for FunctionV2
source§fn clone(&self) -> FunctionV2
fn clone(&self) -> FunctionV2
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 FunctionV2
impl Debug for FunctionV2
source§impl Deserial for FunctionV2
impl Deserial for FunctionV2
source§fn deserial<R>(source: &mut R) -> Result<FunctionV2, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<FunctionV2, ParseError>where
R: Read,
Attempt to read a structure from a given source, failing if an error
occurs during deserialization or reading. Read more