Struct concordium_std::schema::ContractV0
source · pub struct ContractV0 {
pub state: Option<Type>,
pub init: Option<Type>,
pub receive: BTreeMap<String, Type>,
}
Expand description
Describes all the schemas of a V0 smart contract.
The Default
instance produces an empty schema.
Fields§
§state: Option<Type>
§init: Option<Type>
§receive: BTreeMap<String, Type>
Trait Implementations§
source§impl Clone for ContractV0
impl Clone for ContractV0
source§fn clone(&self) -> ContractV0
fn clone(&self) -> ContractV0
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 ContractV0
impl Debug for ContractV0
source§impl Default for ContractV0
impl Default for ContractV0
source§fn default() -> ContractV0
fn default() -> ContractV0
Returns the “default value” for a type. Read more
source§impl Deserial for ContractV0
impl Deserial for ContractV0
source§fn deserial<R>(source: &mut R) -> Result<ContractV0, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<ContractV0, 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 ContractV0
impl PartialEq for ContractV0
source§fn eq(&self, other: &ContractV0) -> bool
fn eq(&self, other: &ContractV0) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serial for ContractV0
impl Serial for ContractV0
impl Eq for ContractV0
impl StructuralPartialEq for ContractV0
Auto Trait Implementations§
impl Freeze for ContractV0
impl RefUnwindSafe for ContractV0
impl Send for ContractV0
impl Sync for ContractV0
impl Unpin for ContractV0
impl UnwindSafe for ContractV0
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.