pub struct SendNativeInfo {
pub coin: Coin,
pub path_middle_forward: Vec<PacketPath>,
pub dest_denom: String,
pub channel_id: String,
pub timeout: Option<u64>,
}
Expand description
Information about the send of native token with Requests
.
path_middle_forward
allow to use the packet_forwarding in case the native token has to step in one or more intermediary chains.
channel_id
specify the channel to use to transfer the tokens.
In case a path_middle_forward
is setted, the channel_id
is the last channel to use to send the token to the destination chain.
Example:
A
->B
->C
chain_id
is the channel used on chainB
to send to chainC
;path_middle_forward
will be:
ⓘ
vec![
PacketPath{
channel_id: "channel-A", // Channel on chain A used to transfer on chain B
address: "bech32ChainBAddress" // Valid bech32 Address on chain B (any valid address)
}
]
Fields§
§coin: Coin
§path_middle_forward: Vec<PacketPath>
§dest_denom: String
§channel_id: String
§timeout: Option<u64>
Implementations§
Source§impl SendNativeInfo
impl SendNativeInfo
pub fn get_first_channel(self) -> String
Trait Implementations§
Source§impl Clone for SendNativeInfo
impl Clone for SendNativeInfo
Source§fn clone(&self) -> SendNativeInfo
fn clone(&self) -> SendNativeInfo
Returns a copy 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 SendNativeInfo
impl Debug for SendNativeInfo
Source§impl<'de> Deserialize<'de> for SendNativeInfo
impl<'de> Deserialize<'de> for SendNativeInfo
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 JsonSchema for SendNativeInfo
impl JsonSchema for SendNativeInfo
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for SendNativeInfo
impl PartialEq for SendNativeInfo
Source§impl Serialize for SendNativeInfo
impl Serialize for SendNativeInfo
impl StructuralPartialEq for SendNativeInfo
Auto Trait Implementations§
impl Freeze for SendNativeInfo
impl RefUnwindSafe for SendNativeInfo
impl Send for SendNativeInfo
impl Sync for SendNativeInfo
impl Unpin for SendNativeInfo
impl UnwindSafe for SendNativeInfo
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