pub struct Destination { /* private fields */ }Expand description
Where the linked contract is asked to send the token on: a recipient in its encoding, on a chain by its id. The contract reads both; the venue passes them through.
Implementations§
Source§impl Destination
impl Destination
Sourcepub fn evm(recipient: Address, chain_id: u32) -> Destination
pub fn evm(recipient: Address, chain_id: u32) -> Destination
An EVM address on the chain chain_id, written lowercase.
Sourcepub fn base58(recipient: &str, chain_id: u32) -> Destination
pub fn base58(recipient: &str, chain_id: u32) -> Destination
A base58 address on the chain chain_id, as given.
Sourcepub const fn encoding(&self) -> AddressEncoding
pub const fn encoding(&self) -> AddressEncoding
How the recipient is written.
Trait Implementations§
Source§impl Clone for Destination
impl Clone for Destination
Source§impl Debug for Destination
impl Debug for Destination
impl Eq for Destination
Source§impl PartialEq for Destination
impl PartialEq for Destination
impl StructuralPartialEq for Destination
Auto Trait Implementations§
impl Forget for Destination
impl Freeze for Destination
impl Move for Destination
impl RefUnwindSafe for Destination
impl Send for Destination
impl Sync for Destination
impl Unpin for Destination
impl UnsafeUnpin for Destination
impl UnwindSafe for Destination
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.