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>, Error>
pub fn get_logs_with_type<T: Tokenizable + Parameterize>( &self, ) -> Result<Vec<T>, Error>
Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for FuelCallResponse<D>where
D: Freeze,
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> 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