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,
pub tx_id: Option<Bytes32>,
}
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: LogDecoder
§tx_id: Option<Bytes32>
Implementations§
source§impl<D> FuelCallResponse<D>
impl<D> FuelCallResponse<D>
pub fn new( value: D, receipts: Vec<Receipt>, log_decoder: LogDecoder, tx_id: Option<Bytes32> ) -> Self
pub fn decode_logs(&self) -> LogResult
pub fn decode_logs_with_type<T: Tokenizable + Parameterize + 'static>( &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
.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