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