pub enum FunctionV1 {
Parameter(Type),
ReturnValue(Type),
Both {
parameter: Type,
return_value: Type,
},
}
Expand description
Describes the schema of an init or a receive function for V1 contracts with V1 schemas.
Variants
Parameter(Type)
ReturnValue(Type)
Both
Implementations
sourceimpl FunctionV1
impl FunctionV1
Trait Implementations
sourceimpl Clone for FunctionV1
impl Clone for FunctionV1
sourcefn clone(&self) -> FunctionV1
fn clone(&self) -> FunctionV1
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 FunctionV1
impl Debug for FunctionV1
sourceimpl Deserial for FunctionV1
impl Deserial for FunctionV1
sourceimpl PartialEq<FunctionV1> for FunctionV1
impl PartialEq<FunctionV1> for FunctionV1
sourcefn eq(&self, other: &FunctionV1) -> bool
fn eq(&self, other: &FunctionV1) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serial for FunctionV1
impl Serial for FunctionV1
impl Eq for FunctionV1
impl StructuralEq for FunctionV1
impl StructuralPartialEq for FunctionV1
Auto Trait Implementations
impl RefUnwindSafe for FunctionV1
impl Send for FunctionV1
impl Sync for FunctionV1
impl Unpin for FunctionV1
impl UnwindSafe for FunctionV1
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