Struct rgbstd::interface::ContractBuilder
source · pub struct ContractBuilder { /* private fields */ }Implementations§
source§impl ContractBuilder
impl ContractBuilder
pub fn with( iface: Iface, schema: SubSchema, iimpl: IfaceImpl ) -> Result<Self, BuilderError>
pub fn set_chain(self, chain: Chain) -> Self
pub fn add_global_state( self, name: impl Into<TypeName>, value: impl StrictSerialize ) -> Result<Self, BuilderError>
pub fn add_fungible_state( self, name: impl Into<TypeName>, seal: impl Into<GenesisSeal>, value: u64 ) -> Result<Self, BuilderError>
pub fn issue_contract(self) -> Result<Contract, BuilderError>
Trait Implementations§
source§impl Clone for ContractBuilder
impl Clone for ContractBuilder
source§fn clone(&self) -> ContractBuilder
fn clone(&self) -> ContractBuilder
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 more