pub struct ForwardMetadata {
pub receiver: Signer,
pub port: PortId,
pub channel: ChannelId,
pub timeout: Option<Duration>,
pub retries: Option<u8>,
pub next: Option<Map<String, Value>>,
}Expand description
Metadata included in ICS-20 packet memos, related with the packet forwarding middleware.
Fields§
§receiver: SignerReceiver account on the destination chain.
port: PortIdDestination port (usually the transfer port).
channel: ChannelIdDestination channel.
timeout: Option<Duration>Packet timeout duration.
Formatted as regular time strings (e.g. "1m20s"),
or nanoseconds (e.g. 12345).
retries: Option<u8>The number of retries before a packet is invalidated.
next: Option<Map<String, Value>>The memo of the next forward transfer. This might be
another ForwardMetadata structure, along with
any additional middleware callbacks.
Trait Implementations§
Source§impl Clone for ForwardMetadata
impl Clone for ForwardMetadata
Source§fn clone(&self) -> ForwardMetadata
fn clone(&self) -> ForwardMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForwardMetadata
impl Debug for ForwardMetadata
Source§impl<'de> Deserialize<'de> for ForwardMetadata
impl<'de> Deserialize<'de> for ForwardMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ForwardMetadata
impl Hash for ForwardMetadata
Source§impl PartialEq for ForwardMetadata
impl PartialEq for ForwardMetadata
Source§impl Serialize for ForwardMetadata
impl Serialize for ForwardMetadata
impl Eq for ForwardMetadata
impl StructuralPartialEq for ForwardMetadata
Auto Trait Implementations§
impl Freeze for ForwardMetadata
impl RefUnwindSafe for ForwardMetadata
impl Send for ForwardMetadata
impl Sync for ForwardMetadata
impl Unpin for ForwardMetadata
impl UnwindSafe for ForwardMetadata
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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