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.
source§impl PartialEq for FunctionV2
impl PartialEq for FunctionV2
source§fn 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 ==
.source§impl Serial for FunctionV2
impl Serial for FunctionV2
impl Eq for FunctionV2
impl StructuralPartialEq for FunctionV2
Auto Trait Implementations§
impl Freeze for FunctionV2
impl RefUnwindSafe for FunctionV2
impl Send for FunctionV2
impl Sync for FunctionV2
impl Unpin for FunctionV2
impl UnwindSafe for FunctionV2
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<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.