pub struct TxExpect {
pub out: CheckValueList,
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: CheckValueList
§status: CheckValue<U64Value>
§message: CheckValue<BytesValue>
§logs: CheckLogs
§gas: CheckValue<U64Value>
§refund: CheckValue<U64Value>
§build_from_response: bool
§additional_error_message: String
Implementations§
Source§impl TxExpect
impl TxExpect
pub fn ok() -> Self
pub fn err<S, E>(status_code_expr: S, err_msg_expr: E) -> Self
pub fn user_error<E>(err_msg_expr: E) -> Selfwhere
BytesValue: From<E>,
pub fn no_result(self) -> Self
pub fn result(self, value: &str) -> Self
pub fn additional_error_message<A>(self, message: A) -> Self
Trait Implementations§
Source§impl InterpretableFrom<TxExpectRaw> for TxExpect
impl InterpretableFrom<TxExpectRaw> for TxExpect
fn interpret_from(from: TxExpectRaw, context: &InterpreterContext) -> Self
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> 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