Struct ibc_testkit::fixtures::applications::transfer::PacketDataConfig
source · pub struct PacketDataConfig {
pub token: PrefixedCoin,
pub sender: Signer,
pub receiver: Signer,
pub memo: Memo,
}Expand description
Configuration of the PacketData type for building dummy packets.
Fields§
§token: PrefixedCoin§sender: Signer§receiver: Signer§memo: MemoImplementations§
source§impl PacketDataConfig
impl PacketDataConfig
sourcepub fn builder() -> PacketDataConfigBuilder<((), (), (), ())>
pub fn builder() -> PacketDataConfigBuilder<((), (), (), ())>
Create a builder for building PacketDataConfig.
On the builder, call .token(...), .sender(...)(optional), .receiver(...)(optional), .memo(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of PacketDataConfig.
Trait Implementations§
source§impl Debug for PacketDataConfig
impl Debug for PacketDataConfig
source§impl From<PacketDataConfig> for PacketData
impl From<PacketDataConfig> for PacketData
source§fn from(config: PacketDataConfig) -> Self
fn from(config: PacketDataConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PacketDataConfig
impl RefUnwindSafe for PacketDataConfig
impl Send for PacketDataConfig
impl Sync for PacketDataConfig
impl Unpin for PacketDataConfig
impl UnwindSafe for PacketDataConfig
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