Struct osmosis_test_tube::GovWithAppAccess
source · pub struct GovWithAppAccess<'a> { /* private fields */ }
Expand description
Extension for Gov module
It has ability to access to OsmosisTestApp
which is more specific than Runner
Implementations§
source§impl<'a> GovWithAppAccess<'a>
impl<'a> GovWithAppAccess<'a>
pub fn new(app: &'a OsmosisTestApp) -> Self
pub fn to_gov(&self) -> &Gov<'a, OsmosisTestApp>
pub fn propose_and_execute<M: Message>( &self, msg_type_url: String, msg: M, proposer: String, signer: &SigningAccount ) -> RunnerExecuteResult<MsgSubmitProposalResponse>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for GovWithAppAccess<'a>
impl<'a> Send for GovWithAppAccess<'a>
impl<'a> Sync for GovWithAppAccess<'a>
impl<'a> Unpin for GovWithAppAccess<'a>
impl<'a> UnwindSafe for GovWithAppAccess<'a>
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