pub struct ContractBuilder { /* private fields */ }Expand description
Builder used to create a Contract
Implementations§
Source§impl ContractBuilder
impl ContractBuilder
pub fn new() -> Self
pub fn with_name(self, name: String) -> ContractBuilder
pub fn with_version(self, version: String) -> ContractBuilder
pub fn with_inputs(self, inputs: Vec<String>) -> ContractBuilder
pub fn with_outputs(self, outputs: Vec<String>) -> ContractBuilder
pub fn with_creator(self, creator: String) -> ContractBuilder
pub fn with_contract(self, contract: Vec<u8>) -> ContractBuilder
pub fn build(self) -> Result<Contract, ContractBuildError>
Trait Implementations§
Source§impl Clone for ContractBuilder
impl Clone for ContractBuilder
Source§fn clone(&self) -> ContractBuilder
fn clone(&self) -> ContractBuilder
Returns a duplicate 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 Default for ContractBuilder
impl Default for ContractBuilder
Source§fn default() -> ContractBuilder
fn default() -> ContractBuilder
Returns the “default value” for a type. Read more
Auto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
Source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.Source§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
Source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.