Struct rhaki_cw_multi_test::AppResponse
source · pub struct AppResponse {
pub events: Vec<Event>,
pub data: Option<Binary>,
}
Fields§
§events: Vec<Event>
§data: Option<Binary>
Implementations§
source§impl AppResponse
impl AppResponse
pub fn custom_attrs(&self, idx: usize) -> &[Attribute]
sourcepub fn has_event(&self, expected: &Event) -> bool
pub fn has_event(&self, expected: &Event) -> bool
Check if there is an Event that is a super-set of this. It has the same type, and all compare.attributes are included in it as well. You don’t need to specify them all.
sourcepub fn assert_event(&self, expected: &Event)
pub fn assert_event(&self, expected: &Event)
Like has_event but panics if no match
Trait Implementations§
source§impl Clone for AppResponse
impl Clone for AppResponse
source§fn clone(&self) -> AppResponse
fn clone(&self) -> AppResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AppResponse
impl Debug for AppResponse
source§impl Default for AppResponse
impl Default for AppResponse
source§fn default() -> AppResponse
fn default() -> AppResponse
Returns the “default value” for a type. Read more
source§impl From<SubMsgResponse> for AppResponse
impl From<SubMsgResponse> for AppResponse
They have the same shape, SubMsgExecutionResponse is what is returned in reply. This is just to make some test cases easier.
source§fn from(reply: SubMsgResponse) -> Self
fn from(reply: SubMsgResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for AppResponse
impl Send for AppResponse
impl Sync for AppResponse
impl Unpin for AppResponse
impl UnwindSafe for AppResponse
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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