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
sourceimpl Clone for ContractV0
impl Clone for ContractV0
sourcefn clone(&self) -> ContractV0
fn clone(&self) -> ContractV0
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ContractV0
impl Debug for ContractV0
sourceimpl Default for ContractV0
impl Default for ContractV0
sourcefn default() -> ContractV0
fn default() -> ContractV0
Returns the “default value” for a type. Read more
sourceimpl Deserial for ContractV0
impl Deserial for ContractV0
sourcefn 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. Read more
Auto Trait Implementations
impl RefUnwindSafe for ContractV0
impl Send for ContractV0
impl Sync for ContractV0
impl Unpin for ContractV0
impl UnwindSafe for ContractV0
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more