pub struct HookMemoBuilder { /* private fields */ }
Expand description
Builder for IbcHooks memo field.
Implementations§
Source§impl HookMemoBuilder
impl HookMemoBuilder
Sourcepub fn new(contract_addr: impl Into<String>, msg: &impl Serialize) -> Self
pub fn new(contract_addr: impl Into<String>, msg: &impl Serialize) -> Self
New Wasm Contract Memo IBC Hook Note: contract_addr should be the same as “receiver”
Sourcepub fn callback_contract(self, callback_contract: Addr) -> Self
pub fn callback_contract(self, callback_contract: Addr) -> Self
Contract that will receive callback, see: https://github.com/cosmos/ibc-apps/blob/main/modules/ibc-hooks/README.md#interface-for-receiving-the-acks-and-timeouts
Auto Trait Implementations§
impl Freeze for HookMemoBuilder
impl RefUnwindSafe for HookMemoBuilder
impl Send for HookMemoBuilder
impl Sync for HookMemoBuilder
impl Unpin for HookMemoBuilder
impl UnwindSafe for HookMemoBuilder
Blanket Implementations§
Source§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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more