pub struct ContractBuilder<'a, T: ContractRef> { /* private fields */ }Implementations§
Source§impl<'a, T: ContractRef> ContractBuilder<'a, T>
impl<'a, T: ContractRef> ContractBuilder<'a, T>
pub fn new() -> Self
pub fn with_transferred_value(self, transferred_value: u64) -> Self
pub fn with_code(self, code: &'a [u8]) -> Self
pub fn with_seed(self, seed: &'a [u8; 32]) -> Self
pub fn create<CallData: ToCallData>(
&self,
func: impl FnOnce() -> CallData,
) -> Result<ContractHandle<T>, CallError>where
CallData::Return<'a>: BorshDeserialize,
pub fn default_create(&self) -> Result<ContractHandle<T>, CallError>
Trait Implementations§
Source§impl<T: ContractRef> Default for ContractBuilder<'_, T>
impl<T: ContractRef> Default for ContractBuilder<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ContractBuilder<'a, T>
impl<'a, T> RefUnwindSafe for ContractBuilder<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ContractBuilder<'a, T>where
T: Send,
impl<'a, T> Sync for ContractBuilder<'a, T>where
T: Sync,
impl<'a, T> Unpin for ContractBuilder<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for ContractBuilder<'a, T>where
T: UnwindSafe,
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