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 assignments_type(&self, name: &FieldName) -> Option<AssignmentType>
pub fn add_global_state( self, name: impl Into<FieldName>, value: impl StrictSerialize, ) -> Result<Self, BuilderError>
pub fn add_fungible_state( self, name: impl Into<FieldName>, seal: impl Into<GenesisSeal>, value: u64, ) -> Result<Self, BuilderError>
pub fn add_data_state( self, name: impl Into<FieldName>, seal: impl Into<GenesisSeal>, value: impl StrictSerialize, ) -> 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 moreAuto Trait Implementations§
impl Freeze for ContractBuilder
impl RefUnwindSafe for ContractBuilder
impl Send for ContractBuilder
impl Sync for ContractBuilder
impl Unpin for ContractBuilder
impl UnwindSafe for ContractBuilder
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