pub struct ChainSupport {
pub mainnet: bool,
pub devnet: bool,
pub testnet: bool,
pub localnet: bool,
}
Expand description
Used as a helper struct to contain all the chains supported by a wallet as defined by the wallet standard
Fields§
§mainnet: bool
Main Net cluster
devnet: bool
Dev Net cluster
testnet: bool
Test Net cluster
localnet: bool
Local Net cluster
Trait Implementations§
Source§impl Clone for ChainSupport
impl Clone for ChainSupport
Source§fn clone(&self) -> ChainSupport
fn clone(&self) -> ChainSupport
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 ChainSupport
impl Debug for ChainSupport
Source§impl Default for ChainSupport
impl Default for ChainSupport
Source§fn default() -> ChainSupport
fn default() -> ChainSupport
Returns the “default value” for a type. Read more
Source§impl Hash for ChainSupport
impl Hash for ChainSupport
Source§impl Ord for ChainSupport
impl Ord for ChainSupport
Source§fn cmp(&self, other: &ChainSupport) -> Ordering
fn cmp(&self, other: &ChainSupport) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChainSupport
impl PartialEq for ChainSupport
Source§impl PartialOrd for ChainSupport
impl PartialOrd for ChainSupport
impl Eq for ChainSupport
impl StructuralPartialEq for ChainSupport
Auto Trait Implementations§
impl Freeze for ChainSupport
impl RefUnwindSafe for ChainSupport
impl Send for ChainSupport
impl Sync for ChainSupport
impl Unpin for ChainSupport
impl UnwindSafe for ChainSupport
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