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