Enum ckb_sdk::NetworkType
source · pub enum NetworkType {
Mainnet,
Testnet,
Staging,
Dev,
}Variants§
Implementations§
source§impl NetworkType
impl NetworkType
pub fn from_prefix(value: &str) -> Option<NetworkType>
pub fn to_prefix(self) -> &'static str
pub fn from_raw_str(value: &str) -> Option<NetworkType>
pub fn to_str(self) -> &'static str
Trait Implementations§
source§impl Clone for NetworkType
impl Clone for NetworkType
source§fn clone(&self) -> NetworkType
fn clone(&self) -> NetworkType
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 NetworkType
impl Debug for NetworkType
source§impl<'de> Deserialize<'de> for NetworkType
impl<'de> Deserialize<'de> for NetworkType
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 Display for NetworkType
impl Display for NetworkType
source§impl Hash for NetworkType
impl Hash for NetworkType
source§impl PartialEq<NetworkType> for NetworkType
impl PartialEq<NetworkType> for NetworkType
source§fn eq(&self, other: &NetworkType) -> bool
fn eq(&self, other: &NetworkType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for NetworkType
impl Serialize for NetworkType
impl Copy for NetworkType
impl Eq for NetworkType
impl StructuralEq for NetworkType
impl StructuralPartialEq for NetworkType
Auto Trait Implementations§
impl RefUnwindSafe for NetworkType
impl Send for NetworkType
impl Sync for NetworkType
impl Unpin for NetworkType
impl UnwindSafe for NetworkType
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.