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 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 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