Struct fuels_programs::call_response::FuelCallResponse
source · pub struct FuelCallResponse<D> {
pub value: D,
pub receipts: Vec<Receipt>,
pub gas_used: u64,
pub log_decoder: LogDecoder,
}Expand description
FuelCallResponse is a struct that is returned by a call to the contract or script. Its value
field holds the decoded typed value returned by the contract’s method. The other field holds all
the receipts returned by the call.
The name is FuelCallResponse instead of CallResponse because it would be ambiguous with the
CALL opcode.
Fields§
§value: D§receipts: Vec<Receipt>§gas_used: u64§log_decoder: LogDecoderImplementations§
source§impl<D> FuelCallResponse<D>
impl<D> FuelCallResponse<D>
pub fn new(value: D, receipts: Vec<Receipt>, log_decoder: LogDecoder) -> Self
pub fn get_logs(&self) -> Result<Vec<String>>
pub fn get_logs_with_type<T: Tokenizable + Parameterize>(
&self
) -> Result<Vec<T>>
Trait Implementations§
Auto Trait Implementations§
impl<D> RefUnwindSafe for FuelCallResponse<D>where
D: RefUnwindSafe,
impl<D> Send for FuelCallResponse<D>where
D: Send,
impl<D> Sync for FuelCallResponse<D>where
D: Sync,
impl<D> Unpin for FuelCallResponse<D>where
D: Unpin,
impl<D> UnwindSafe for FuelCallResponse<D>where
D: UnwindSafe,
Blanket Implementations§
source§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere
T: Any + Debug,
source§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.