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§const fn clone_from(&mut self, source: &Self)
const 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§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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