pub struct TxExpect {
pub out: CheckValue<Vec<CheckValue<BytesValue>>>,
pub status: CheckValue<U64Value>,
pub message: CheckValue<BytesValue>,
pub logs: CheckLogs,
pub gas: CheckValue<U64Value>,
pub refund: CheckValue<U64Value>,
pub build_from_response: bool,
pub additional_error_message: String,
}Fields§
§out: CheckValue<Vec<CheckValue<BytesValue>>>§status: CheckValue<U64Value>§message: CheckValue<BytesValue>§logs: CheckLogs§gas: CheckValue<U64Value>§refund: CheckValue<U64Value>§build_from_response: bool§additional_error_message: StringImplementations§
Source§impl TxExpect
impl TxExpect
pub fn ok() -> TxExpect
pub fn err<S, E>(status_code_expr: S, err_msg_expr: E) -> TxExpect
pub fn user_error<E>(err_msg_expr: E) -> TxExpectwhere
BytesValue: From<E>,
pub fn no_result(self) -> TxExpect
pub fn result(self, value: &str) -> TxExpect
pub fn additional_error_message<A>(self, message: A) -> TxExpect
Trait Implementations§
Source§impl InterpretableFrom<TxExpectRaw> for TxExpect
impl InterpretableFrom<TxExpectRaw> for TxExpect
fn interpret_from(from: TxExpectRaw, context: &InterpreterContext) -> TxExpect
Source§impl IntoRaw<TxExpectRaw> for TxExpect
impl IntoRaw<TxExpectRaw> for TxExpect
fn into_raw(self) -> TxExpectRaw
Auto Trait Implementations§
impl Freeze for TxExpect
impl RefUnwindSafe for TxExpect
impl Send for TxExpect
impl Sync for TxExpect
impl Unpin for TxExpect
impl UnwindSafe for TxExpect
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
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