Struct fuels_programs::script_calls::ScriptCall
source · pub struct ScriptCall {
pub script_binary: Vec<u8>,
pub encoded_args: UnresolvedBytes,
pub inputs: Vec<Input>,
pub outputs: Vec<Output>,
pub external_contracts: Vec<Bech32ContractId>,
pub variable_outputs: Vec<Output>,
}Expand description
Contains all data relevant to a single script call
Fields§
§script_binary: Vec<u8>§encoded_args: UnresolvedBytes§inputs: Vec<Input>§outputs: Vec<Output>§external_contracts: Vec<Bech32ContractId>§variable_outputs: Vec<Output>Implementations§
source§impl ScriptCall
impl ScriptCall
pub fn with_outputs(self, outputs: Vec<Output>) -> Self
pub fn with_inputs(self, inputs: Vec<Input>) -> Self
pub fn with_external_contracts( self, external_contracts: Vec<Bech32ContractId> ) -> ScriptCall
pub fn append_external_contracts(&mut self, contract_id: Bech32ContractId)
pub fn append_variable_outputs(&mut self, num: u64)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ScriptCall
impl Send for ScriptCall
impl Sync for ScriptCall
impl Unpin for ScriptCall
impl UnwindSafe for ScriptCall
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any.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