pub struct CreateContractActionBuilder { /* private fields */ }Expand description
Builder used to create a CreateContractAction
Implementations§
Source§impl CreateContractActionBuilder
impl CreateContractActionBuilder
pub fn new() -> Self
pub fn with_name(self, name: String) -> CreateContractActionBuilder
pub fn with_version(self, version: String) -> CreateContractActionBuilder
pub fn with_inputs(self, inputs: Vec<String>) -> CreateContractActionBuilder
pub fn with_outputs(self, outputs: Vec<String>) -> CreateContractActionBuilder
pub fn with_contract(self, contract: Vec<u8>) -> CreateContractActionBuilder
pub fn build(self) -> Result<CreateContractAction, ActionBuildError>
pub fn into_payload_builder( self, ) -> Result<SabrePayloadBuilder, ActionBuildError>
Trait Implementations§
Source§impl Clone for CreateContractActionBuilder
impl Clone for CreateContractActionBuilder
Source§fn clone(&self) -> CreateContractActionBuilder
fn clone(&self) -> CreateContractActionBuilder
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 CreateContractActionBuilder
impl Default for CreateContractActionBuilder
Source§fn default() -> CreateContractActionBuilder
fn default() -> CreateContractActionBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateContractActionBuilder
impl RefUnwindSafe for CreateContractActionBuilder
impl Send for CreateContractActionBuilder
impl Sync for CreateContractActionBuilder
impl Unpin for CreateContractActionBuilder
impl UnwindSafe for CreateContractActionBuilder
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.