pub enum SparkNetwork {
Mainnet,
Regtest,
}Expand description
The Spark network.
JSON schema
{
"title": "SparkNetwork",
"description": "The Spark network.",
"type": "string",
"enum": [
"MAINNET",
"REGTEST"
],
"x-stainless-model": "wallets.spark_network"
}Variants§
Trait Implementations§
Source§impl Clone for SparkNetwork
impl Clone for SparkNetwork
Source§fn clone(&self) -> SparkNetwork
fn clone(&self) -> SparkNetwork
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SparkNetwork
Source§impl Debug for SparkNetwork
impl Debug for SparkNetwork
Source§impl<'de> Deserialize<'de> for SparkNetwork
impl<'de> Deserialize<'de> for SparkNetwork
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 SparkNetwork
impl Display for SparkNetwork
impl Eq for SparkNetwork
Source§impl From<&SparkNetwork> for SparkNetwork
impl From<&SparkNetwork> for SparkNetwork
Source§fn from(value: &SparkNetwork) -> Self
fn from(value: &SparkNetwork) -> Self
Converts to this type from the input type.
Source§impl FromStr for SparkNetwork
impl FromStr for SparkNetwork
Source§impl Hash for SparkNetwork
impl Hash for SparkNetwork
Source§impl Ord for SparkNetwork
impl Ord for SparkNetwork
Source§fn cmp(&self, other: &SparkNetwork) -> Ordering
fn cmp(&self, other: &SparkNetwork) -> Ordering
1.21.0 (const: unstable) · 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 SparkNetwork
impl PartialEq for SparkNetwork
Source§fn eq(&self, other: &SparkNetwork) -> bool
fn eq(&self, other: &SparkNetwork) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SparkNetwork
impl PartialOrd for SparkNetwork
Source§impl Serialize for SparkNetwork
impl Serialize for SparkNetwork
impl StructuralPartialEq for SparkNetwork
Source§impl TryFrom<&String> for SparkNetwork
impl TryFrom<&String> for SparkNetwork
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for SparkNetwork
impl TryFrom<&str> for SparkNetwork
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for SparkNetwork
impl TryFrom<String> for SparkNetwork
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for SparkNetwork
impl RefUnwindSafe for SparkNetwork
impl Send for SparkNetwork
impl Sync for SparkNetwork
impl Unpin for SparkNetwork
impl UnsafeUnpin for SparkNetwork
impl UnwindSafe for SparkNetwork
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