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§
Implementations§
Trait Implementations§
Source§impl Clone for FunctionV1
impl Clone for FunctionV1
Source§fn clone(&self) -> FunctionV1
fn clone(&self) -> FunctionV1
Returns a duplicate 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 FunctionV1
impl Debug for FunctionV1
Source§impl Deserial for FunctionV1
impl Deserial for FunctionV1
Source§fn deserial<R>(source: &mut R) -> Result<FunctionV1, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<FunctionV1, 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 for FunctionV1
impl PartialEq for FunctionV1
Source§impl Serial for FunctionV1
impl Serial for FunctionV1
impl Eq for FunctionV1
impl StructuralPartialEq for FunctionV1
Auto Trait Implementations§
impl Freeze for FunctionV1
impl RefUnwindSafe for FunctionV1
impl Send for FunctionV1
impl Sync for FunctionV1
impl Unpin for FunctionV1
impl UnwindSafe for FunctionV1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
impl<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
Source§fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
Attempt to read a structure from a given source and state, failing if
an error occurs during deserialization or reading.