Struct 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.