Enum lwk_wollet::ElementsNetwork
source · pub enum ElementsNetwork {
Liquid,
LiquidTestnet,
ElementsRegtest {
policy_asset: AssetId,
},
}
Variants§
Implementations§
source§impl ElementsNetwork
impl ElementsNetwork
pub fn policy_asset(&self) -> AssetId
pub fn as_str(&self) -> &'static str
pub fn address_params(&self) -> &'static AddressParams
pub fn tx_builder(&self) -> TxBuilder
Available on crate feature
bindings
only.Trait Implementations§
source§impl Clone for ElementsNetwork
impl Clone for ElementsNetwork
source§fn clone(&self) -> ElementsNetwork
fn clone(&self) -> ElementsNetwork
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 ElementsNetwork
impl Debug for ElementsNetwork
source§impl PartialEq for ElementsNetwork
impl PartialEq for ElementsNetwork
source§fn eq(&self, other: &ElementsNetwork) -> bool
fn eq(&self, other: &ElementsNetwork) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ElementsNetwork
impl Eq for ElementsNetwork
impl StructuralPartialEq for ElementsNetwork
Auto Trait Implementations§
impl Freeze for ElementsNetwork
impl RefUnwindSafe for ElementsNetwork
impl Send for ElementsNetwork
impl Sync for ElementsNetwork
impl Unpin for ElementsNetwork
impl UnwindSafe for ElementsNetwork
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<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.