pub struct ContractV3 {
pub init: Option<FunctionV2>,
pub receive: BTreeMap<String, FunctionV2>,
pub event: Option<Type>,
}
Expand description
Describes all the schemas of a V1 smart contract with a V3 schema.
The Default
instance produces an empty schema.
Fields§
§init: Option<FunctionV2>
§receive: BTreeMap<String, FunctionV2>
§event: Option<Type>
Implementations§
Trait Implementations§
Source§impl Clone for ContractV3
impl Clone for ContractV3
Source§fn clone(&self) -> ContractV3
fn clone(&self) -> ContractV3
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 ContractV3
impl Debug for ContractV3
Source§impl Default for ContractV3
impl Default for ContractV3
Source§fn default() -> ContractV3
fn default() -> ContractV3
Returns the “default value” for a type. Read more
Source§impl Deserial for ContractV3
impl Deserial for ContractV3
Source§fn deserial<R>(source: &mut R) -> Result<ContractV3, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<ContractV3, 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 ContractV3
impl PartialEq for ContractV3
Source§impl Serial for ContractV3
impl Serial for ContractV3
impl Eq for ContractV3
impl StructuralPartialEq for ContractV3
Auto Trait Implementations§
impl Freeze for ContractV3
impl RefUnwindSafe for ContractV3
impl Send for ContractV3
impl Sync for ContractV3
impl Unpin for ContractV3
impl UnwindSafe for ContractV3
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.