pub enum NetworkInRequest {
Mainnet,
mainnet,
Testnet,
testnet,
Regtest,
regtest,
}
Expand description
A network enum that allows both upper and lowercase variants. Supporting both variants allows us to be compatible with the spec (lowercase) while not breaking current dapps that are using uppercase variants.
Variants§
Trait Implementations§
source§impl CandidType for NetworkInRequest
impl CandidType for NetworkInRequest
source§impl Clone for NetworkInRequest
impl Clone for NetworkInRequest
source§fn clone(&self) -> NetworkInRequest
fn clone(&self) -> NetworkInRequest
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 NetworkInRequest
impl Debug for NetworkInRequest
source§impl<'de> Deserialize<'de> for NetworkInRequest
impl<'de> Deserialize<'de> for NetworkInRequest
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 NetworkInRequest
impl Display for NetworkInRequest
source§impl From<Network> for NetworkInRequest
impl From<Network> for NetworkInRequest
source§impl From<NetworkInRequest> for Network
impl From<NetworkInRequest> for Network
source§fn from(network: NetworkInRequest) -> Self
fn from(network: NetworkInRequest) -> Self
Converts to this type from the input type.
source§impl Hash for NetworkInRequest
impl Hash for NetworkInRequest
source§impl PartialEq for NetworkInRequest
impl PartialEq for NetworkInRequest
source§fn eq(&self, other: &NetworkInRequest) -> bool
fn eq(&self, other: &NetworkInRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NetworkInRequest
impl Serialize for NetworkInRequest
impl Copy for NetworkInRequest
impl Eq for NetworkInRequest
impl StructuralPartialEq for NetworkInRequest
Auto Trait Implementations§
impl Freeze for NetworkInRequest
impl RefUnwindSafe for NetworkInRequest
impl Send for NetworkInRequest
impl Sync for NetworkInRequest
impl Unpin for NetworkInRequest
impl UnwindSafe for NetworkInRequest
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