Struct cw_multi_test::AppResponse
source · [−]Fields
events: Vec<Event>
data: Option<Binary>
Implementations
sourceimpl 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
sourceimpl Clone for AppResponse
impl Clone for AppResponse
sourcefn clone(&self) -> AppResponse
fn clone(&self) -> AppResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AppResponse
impl Debug for AppResponse
sourceimpl Default for AppResponse
impl Default for AppResponse
sourcefn default() -> AppResponse
fn default() -> AppResponse
Returns the “default value” for a type. Read more
sourceimpl 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.
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more