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 more
sourceimpl 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<SubMsgExecutionResponse> for AppResponse
impl From<SubMsgExecutionResponse> 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: SubMsgExecutionResponse) -> Self
fn from(reply: SubMsgExecutionResponse) -> Self
Performs the conversion.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more