Struct cosmwasm_std::TransferMsgBuilder
source · pub struct TransferMsgBuilder<MemoData> { /* private fields */ }
Implementations§
source§impl TransferMsgBuilder<EmptyMemo>
impl TransferMsgBuilder<EmptyMemo>
sourcepub fn new(
channel_id: impl Into<String>,
to_address: impl Into<String>,
amount: Coin,
timeout: impl Into<IbcTimeout>,
) -> Self
pub fn new( channel_id: impl Into<String>, to_address: impl Into<String>, amount: Coin, timeout: impl Into<IbcTimeout>, ) -> Self
Creates a new transfer message with the given parameters and no memo.
sourcepub fn with_memo(self, memo: impl Into<String>) -> TransferMsgBuilder<WithMemo>
pub fn with_memo(self, memo: impl Into<String>) -> TransferMsgBuilder<WithMemo>
Adds a memo text to the transfer message.
sourcepub fn with_src_callback(
self,
src_callback: IbcSrcCallback,
) -> TransferMsgBuilder<WithSrcCallback>
pub fn with_src_callback( self, src_callback: IbcSrcCallback, ) -> TransferMsgBuilder<WithSrcCallback>
Adds an IBC source callback entry to the memo field. Use this if you want to receive IBC callbacks on the source chain.
For more info check out crate::IbcSourceCallbackMsg
.
sourcepub fn with_dst_callback(
self,
dst_callback: IbcDstCallback,
) -> TransferMsgBuilder<WithDstCallback>
pub fn with_dst_callback( self, dst_callback: IbcDstCallback, ) -> TransferMsgBuilder<WithDstCallback>
Adds an IBC destination callback entry to the memo field. Use this if you want to receive IBC callbacks on the destination chain.
For more info check out crate::IbcDestinationCallbackMsg
.
source§impl TransferMsgBuilder<WithSrcCallback>
impl TransferMsgBuilder<WithSrcCallback>
sourcepub fn with_dst_callback(
self,
dst_callback: IbcDstCallback,
) -> TransferMsgBuilder<WithCallbacks>
pub fn with_dst_callback( self, dst_callback: IbcDstCallback, ) -> TransferMsgBuilder<WithCallbacks>
Adds an IBC destination callback entry to the memo field. Use this if you want to receive IBC callbacks on the destination chain.
For more info check out crate::IbcDestinationCallbackMsg
.
source§impl TransferMsgBuilder<WithDstCallback>
impl TransferMsgBuilder<WithDstCallback>
sourcepub fn with_src_callback(
self,
src_callback: IbcSrcCallback,
) -> TransferMsgBuilder<WithCallbacks>
pub fn with_src_callback( self, src_callback: IbcSrcCallback, ) -> TransferMsgBuilder<WithCallbacks>
Adds an IBC source callback entry to the memo field. Use this if you want to receive IBC callbacks on the source chain.
For more info check out crate::IbcSourceCallbackMsg
.
Trait Implementations§
source§impl<MemoData: Clone> Clone for TransferMsgBuilder<MemoData>
impl<MemoData: Clone> Clone for TransferMsgBuilder<MemoData>
source§fn clone(&self) -> TransferMsgBuilder<MemoData>
fn clone(&self) -> TransferMsgBuilder<MemoData>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<MemoData: Debug> Debug for TransferMsgBuilder<MemoData>
impl<MemoData: Debug> Debug for TransferMsgBuilder<MemoData>
source§impl<MemoData: PartialEq> PartialEq for TransferMsgBuilder<MemoData>
impl<MemoData: PartialEq> PartialEq for TransferMsgBuilder<MemoData>
source§fn eq(&self, other: &TransferMsgBuilder<MemoData>) -> bool
fn eq(&self, other: &TransferMsgBuilder<MemoData>) -> bool
self
and other
values to be equal, and is used by ==
.impl<MemoData: Eq> Eq for TransferMsgBuilder<MemoData>
impl<MemoData> StructuralPartialEq for TransferMsgBuilder<MemoData>
Auto Trait Implementations§
impl<MemoData> Freeze for TransferMsgBuilder<MemoData>where
MemoData: Freeze,
impl<MemoData> RefUnwindSafe for TransferMsgBuilder<MemoData>where
MemoData: RefUnwindSafe,
impl<MemoData> Send for TransferMsgBuilder<MemoData>where
MemoData: Send,
impl<MemoData> Sync for TransferMsgBuilder<MemoData>where
MemoData: Sync,
impl<MemoData> Unpin for TransferMsgBuilder<MemoData>where
MemoData: Unpin,
impl<MemoData> UnwindSafe for TransferMsgBuilder<MemoData>where
MemoData: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
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