pub struct ContractCall {
pub contract_id: Bech32ContractId,
pub encoded_args: UnresolvedBytes,
pub encoded_selector: Selector,
pub call_parameters: CallParameters,
pub compute_custom_input_offset: bool,
pub variable_outputs: Option<Vec<Output>>,
pub message_outputs: Option<Vec<Output>>,
pub external_contracts: Vec<Bech32ContractId>,
pub output_param: ParamType,
}
Expand description
Contains all data relevant to a single contract call
Fields§
§contract_id: Bech32ContractId
§encoded_args: UnresolvedBytes
§encoded_selector: Selector
§call_parameters: CallParameters
§compute_custom_input_offset: bool
§variable_outputs: Option<Vec<Output>>
§message_outputs: Option<Vec<Output>>
§external_contracts: Vec<Bech32ContractId>
§output_param: ParamType
Implementations§
Source§impl ContractCall
impl ContractCall
pub fn with_contract_id(self, contract_id: Bech32ContractId) -> Self
pub fn with_external_contracts( self, external_contracts: Vec<Bech32ContractId>, ) -> ContractCall
pub fn with_variable_outputs( self, variable_outputs: Vec<Output>, ) -> ContractCall
pub fn with_message_outputs(self, message_outputs: Vec<Output>) -> ContractCall
pub fn with_call_parameters( self, call_parameters: CallParameters, ) -> ContractCall
pub fn append_variable_outputs(&mut self, num: u64)
pub fn append_external_contracts(&mut self, contract_id: Bech32ContractId)
pub fn append_message_outputs(&mut self, num: u64)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContractCall
impl RefUnwindSafe for ContractCall
impl Send for ContractCall
impl Sync for ContractCall
impl Unpin for ContractCall
impl UnwindSafe for ContractCall
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more