Enum concordium_std::schema::FunctionV2
source · [−]pub enum FunctionV2 {
Param(Type),
Rv(Type),
ParamRv {
parameter: Type,
return_value: Type,
},
Error(Type),
ParamError {
parameter: Type,
error: Type,
},
RvError {
return_value: Type,
error: Type,
},
ParamRvError {
parameter: Type,
return_value: Type,
error: Type,
},
}
Expand description
Describes the schema of an init or a receive function for V1 contracts with
V2 schemas. Differs from FunctionV1
in that a schema for the error can
be included.
Variants
Param(Type)
Rv(Type)
Rv is short for Return value.
ParamRv
Error(Type)
ParamError
RvError
ParamRvError
Implementations
Trait Implementations
sourceimpl Clone for FunctionV2
impl Clone for FunctionV2
sourcefn clone(&self) -> FunctionV2
fn clone(&self) -> FunctionV2
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 FunctionV2
impl Debug for FunctionV2
sourceimpl Deserial for FunctionV2
impl Deserial for FunctionV2
sourcefn 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
sourceimpl PartialEq<FunctionV2> for FunctionV2
impl PartialEq<FunctionV2> for FunctionV2
sourcefn eq(&self, other: &FunctionV2) -> bool
fn eq(&self, other: &FunctionV2) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serial for FunctionV2
impl Serial for FunctionV2
impl Eq for FunctionV2
impl StructuralEq for FunctionV2
impl StructuralPartialEq for FunctionV2
Auto Trait Implementations
impl RefUnwindSafe for FunctionV2
impl Send for FunctionV2
impl Sync for FunctionV2
impl Unpin for FunctionV2
impl UnwindSafe for FunctionV2
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